int main() {
int array[13] = { 0,31,59, 90,120, 151,181, 212, 243, 273, 304, 334, 365 };
int a = 0, b = 0;
scanf("%d,%d", &a, &b);
int day = array[a - 1] + b;
printf("%d ", day);
return 0;
}
如果是瑞年的话 直接判断月份最终结果+1
int main() {
int array[13] = { 0,31,59, 90,120, 151,181, 212, 243, 273, 304, 334, 365 };
int a = 0, b = 0;
scanf("%d,%d", &a, &b);
int day = array[a - 1] + b;
printf("%d ", day);
return 0;
}
如果是瑞年的话 直接判断月份最终结果+1