#include <stdio.h>
int main(int argc, char **argv){
int x, n;
scanf("%d%d", &x, &n);
printf("%d\n", (x-1+n%7)%7+1);
return 0;
}
洛谷B3921 [GESP202312 一级] 小杨的考试
最新推荐文章于 2024-09-10 15:28:21 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include <stdio.h>
int main(int argc, char **argv){
int x, n;
scanf("%d%d", &x, &n);
printf("%d\n", (x-1+n%7)%7+1);
return 0;
}