题解 | #开学?#
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
int main(void) { int X, N, res; scanf("%d %d", &X, &N); res = (X + N) % 7; printf("%d", res ? res : 7); return 0; }
#猹的刷题生涯#
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
int main(void) { int X, N, res; scanf("%d %d", &X, &N); res = (X + N) % 7; printf("%d", res ? res : 7); return 0; }
相关推荐