1 solutions
-
0
C :
#include <stdio.h> int main() { printf("10\n"); return 0; }C++ :
#include <iostream> using namespace std; int main() { int y, m = 10, d = 1, count = 0; for(y=1949; y<=2015; y++) if((d+2*m+3*(m+1)/5+y+y/4-y/100+y/400+1)%7 == 0) count++; cout<<count<<endl; return 0; }
- 1
Information
- ID
- 18325
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- # Submissions
- 0
- Accepted
- 0
- Uploaded By