运行是0 0 0 0 0 0 0
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int s = 1990 + n - 1,x = 1,cnt1 = 0,cnt2 = 0,cnt3 = 0,cnt4 = 0,cnt5 = 0,cnt6 = 0,cnt7 = 0;
for(int i = 1900;i <= s;++i){
bool f = false;
if(i % 400 == 0) {
f = true;
}
for(int j = 1;i <= 12;++i){
int r;
if(j == 2){
if(f == true){
r = 29;
}else{
r = 28;
}
}else if(j == 1 || j == 3 || j == 5 || j == 7 || j == 8 || j == 10 || j == 12){
r = 31;
}else{
r = 30;
}
for(int z = 1;z <= r;++z){
if(z == 13){
if(x == 1){
cnt1++;
}else if(x == 2){
cnt2++;
}else if(x == 3){
cnt3++;
}else if(x == 4){
cnt4++;
}else if(x == 5){
cnt5++;
}else if(x == 6){
cnt6++;
}else{
cnt7++;
}
}
x %= 7;
x++;
}
}
}
cout << cnt6 << " " << cnt7 << " " << cnt1 << " " << cnt2 << " " << cnt3 << " " << cnt4 << " " << cnt5;
return 0;
}