Only authorized users are allowed to upload new attachments.

### List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
cpp
main.cpp 0.3 kB 4 20-Aug-2015 17:35 metotra Инженер, регионален 2013, напредна група

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

#### Difference between version 6 5 4 3 2 1 and 6 5 4 3 2 1

 At line 1 added 28 lines !!Броеви !C++ %%prettify {{{ //v10 #include using namespace std; int main() { int z, r, x, y; cin >> z >> r; x=(z+r)/2; y=z-x; if(x>=0 && y>=0 && (z+r)%2==0) cout << x << " " << y << endl; else cout << "NE MOZE" << endl; return 0; } }}} /% At line 34 added one line //v10 At line 36 added one line At line 38 added one line At line 10 changed 4 lines int p,v; cin>>p>>v; int kusur=v-p, i=0; while(kusur>0) int x,y,k,petka=0,dvojka=0,kec=0; cin>>x>>y; k=y-x; while(k>0){ while(k>=5) { k=k-5; petka++; } while(k>=2) At line 15 changed 15 lines if(kusur>=5) { kusur-=5; i++; } else if(kusur>=2) { kusur-=2; i++; } else if(kusur>=1) { kusur-=1; i++; } k=k-2; dvojka++; At line 31 changed one line cout<=1) { k=k-1; kec++; } } cout<>z>>r; int x,y; y=(z+r)/2; x=z-y; int p1,p2; if(x>y) { p1=x; p2=y; int n, m, a=0, b, c; long long sum=0; string broj; cin >> str; for(int i=0;i #include #include #include using namespace std; int main(){ int i, j, n, k, zbir=0; cin>>n; int niza[n]; for(i=0;i>niza[i]; zbir+=niza[i]; } int x; bool c[(zbir)+1]; memset(c,false,sizeof(c)); c=true; for(i=0;i=0;j--) { x=j+k; if(c[j]==true) { if(j+k=0;i--) { if(c[i]==true) { p=i; break; } } q=zbir-p; cout<<
Version Date Modified Size Author Changes ... Change note
6 08-Nov-2015 12:45 2.84 kB Penkov to previous
5 08-Nov-2015 12:45 2.811 kB Lord_of_Life to previous | to last
4 20-Aug-2015 17:35 2.356 kB v10 to previous | to last
3 20-Aug-2015 17:35 2.351 kB v10 to previous | to last
2 20-Aug-2015 17:35 3.237 kB mariomako to previous | to last
1 20-Aug-2015 17:35 0.948 kB mariomako to last
« This page (revision-6) was last changed on 08-Nov-2015 12:45 by Penkov
G’day (anonymous guest)
Материјали:

Натпревари 2013:

Натпревари 2012:

Натпревари 2011:

Натпревари 2010:

Системски:

JSPWiki v2.8.3