题解 | 开学?
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
#include <stdio.h>
int main() {
int a, b, j, k,m;
scanf("%d %d", &a, &b);
k = b % 7;
j = a + k;
for (int i = 0;j>7; i++)
{
if (j > 7)
{
j = j % 7;
}
}
printf("%d", j);
return 0;
}
