usaco Friday the Thirteenth
来源:互联网 发布:js 变量未定义 报错 编辑:程序博客网 时间:2024/05/20 04:47
#include<stdio.h>#include<stdlib.h>int m[12]={31,28,31,30,31,30,31,31,30,31,30,31};int d[7];main(){freopen("friday.in","r",stdin);freopen("friday.out","w",stdout);int i,j,l=6,n;scanf("%d",&n);n+=1900;for(i=1900;i<n;i++){if((i%100!=0 && i%4==0)||i%400==0)m[1]++;for(j=0;j<12;j++){d[l]++;l+=m[j];l%=7;}m[1]=28;}printf("%d",d[6]);for(i=0;i<6;i++)printf(" %d",d[i]);puts("");return 0;}
0 0
- Friday the Thirteenth(USACO)
- usaco--Friday the Thirteenth
- [USACO] Friday the Thirteenth
- usaco Friday the Thirteenth
- USACO Friday the Thirteenth
- USACO:Friday the Thirteenth
- USACO -Friday the Thirteenth
- USACO Friday the Thirteenth
- USACO Friday the Thirteenth
- USACO--Friday the Thirteenth
- usaco Friday the Thirteenth
- usaco Friday the Thirteenth
- usaco Friday the Thirteenth
- USACO 1.1-Friday the Thirteenth
- usaco 1.1:Friday the Thirteenth
- USACO 1.1 Friday the Thirteenth
- USACO之Friday the Thirteenth
- 【USACO】PROB Friday the Thirteenth
- usaco calfflac
- PCI总线学习(三)---> PCI总线命令
- usaco 4.4 Frame Up 2010.8.8
- 解决谷歌浏览器Chrome观看bilibili视频弹幕乱码问题
- ADO.NET的五大核心类
- usaco Friday the Thirteenth
- 软件工程师 Software Engineer
- usaco milk
- 吕鑫MFC学习系列八
- usaco 5.4.2 2011.2.17
- cp: omitting directory”错误的解释和解决办法
- Java中泛型中的几个符号
- usaco milk3
- java枚举的概念与应用