题解 | 明天星期几?
明天星期几?
https://www.nowcoder.com/practice/9db9e3d19cde405ba94db09ed1c5f3f3
#include <stdio.h>
int main() {
int d;
scanf("%d",&d);
if(d==7)printf("1\n");
else printf("%d\n",d+1);
return 0;
}
明天星期几?
https://www.nowcoder.com/practice/9db9e3d19cde405ba94db09ed1c5f3f3
#include <stdio.h>
int main() {
int d;
scanf("%d",&d);
if(d==7)printf("1\n");
else printf("%d\n",d+1);
return 0;
}
相关推荐