Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
zip
testovi_cetvrti_elektronski_20... 17.6 kB 1 20-Aug-2015 17:35 MOI

This page (revision-5) was last changed on 20-Aug-2015 17:35 by MOI

This page was created on 20-Aug-2015 17:35 by MOI

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 7 added 25 lines
!C++
%%prettify
{{{
#include <iostream>
using namespace std;
int main()
{
int days[] = {31,28,31,30,31,30,31,31,30,31,30,31};
int m, y;
cin >> m >> y;
int answer = days[m-1];
if (m==2) //february
if ((y%400==0) || ((y%4==0)&&(y%100!=0)))
answer++;
cout << answer << endl;
return 0;
}
}}}
/%
At line 34 removed 25 lines
!C++
%%prettify
{{{
#include <iostream>
using namespace std;
int main()
{
int days[] = {31,28,31,30,31,30,31,31,30,31,30,31};
int m, y;
cin >> m >> y;
int answer = days[m-1];
if (m==2) //february
if ((y%400==0) || ((y%4==0)&&(y%100!=0)))
answer++;
cout << answer << endl;
return 0;
}
}}}
/%
Version Date Modified Size Author Changes ... Change note
5 20-Aug-2015 17:35 3.214 kB MOI to previous
4 20-Aug-2015 17:35 3.214 kB mariomako to previous | to last
3 20-Aug-2015 17:35 3.187 kB mariomako to previous | to last
2 20-Aug-2015 17:35 2.651 kB MOI to previous | to last
1 20-Aug-2015 17:35 2.66 kB MOI to last
« This page (revision-5) was last changed on 20-Aug-2015 17:35 by MOI