题解 | #开学?#
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
#include <stdio.h>
int main() {
int X;
int N;
scanf("%d %d",&X,&N);
printf("%d\n",(X + N - 1) % 7 + 1);
return 0;
}
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
#include <stdio.h>
int main() {
int X;
int N;
scanf("%d %d",&X,&N);
printf("%d\n",(X + N - 1) % 7 + 1);
return 0;
}
相关推荐