题解 | #开学?#

开学?

https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467

#include <stdio.h>
int main() {
    int x, N; 
    scanf("%d %d", &x, &N);
    if ((x + (N % 7)) % 7 == 0) {
        printf("7");
    } else {
        printf("%d", (x + (N % 7)) % 7);
    }
    return 0;
}

全部评论

相关推荐

白火同学:大二有这水平很牛了,可以适当对关键信息加粗一点,比如关键技术、性能指标之类的。
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务