题解 | #开学?#

开学?

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;
}

全部评论

相关推荐

点赞 收藏 评论
分享
牛客网
牛客企业服务