摘要:
地址:http://hustoj.sinaapp.com/problem.php?id=1818又是水题,枚举每天的情况 1 #include <stdio.h> 2 3 int month[12]={31,28,31,30,31,30,31,31,30,31,30,31},week[7]; 4 int count,n; 5 6 int main() 7 { 8 int i=0,j=0,k=0; 9 scanf("%d",&n);10 count=1;//天数计数11 for(i=1900;i<1900+n;i++)12 {13 if... 阅读全文
posted @ 2013-01-15 01:10
tjsuhst
阅读(189)
评论(0)
推荐(0)
摘要:
地址:http://hustoj.sinaapp.com/problem.php?id=1817一开始理解错题意,纠结好半天也不难,用最笨的办法,循环嵌套,一遍遍比对得出答案 1 #include <stdio.h> 2 #include <string.h> 3 4 char name[10][15]; 5 int gift[10][2],result[10]; 6 int n;//人数 7 8 int main() 9 {10 int i=0,j=0,k=0,l=0;11 char in[15];12 scanf("%d",&n);13 阅读全文
posted @ 2013-01-15 00:38
tjsuhst
阅读(402)
评论(0)
推荐(0)

浙公网安备 33010602011771号