题目:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2007
代码:
#include<stdio.h>
int main()
{
int a,b,sum;
int c[12]= {31,28,31,30,31,30,31,31,30,31,30,31};
while(~scanf("%d%d",&a,&b))
{
sum=0;
if(a==2&&b==29) printf("11540\n");
else
{
for(int i=0; i<a-1; i++)
{
sum=sum+c[i];
}
sum=sum+b-1;
printf("%d\n",sum*10);
}
}
}