题解 | 开学?

开学?

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

#include <iostream>
using namespace std;

int main() {
    int X,N;
    cin>>X>>N;
    if((X+N)%7==0)
    cout<<7;
    else
     cout<<(X+N)%7;
    //printf("%d\n",(Week + Day - 1) % 7 + 1);
}
// 64 位输出请用 printf("%lld")

全部评论

相关推荐

07-01 13:37
门头沟学院 Java
steelhead:不是你的问题,这是社会的问题。
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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