题解 | #开学?#

开学?

https://ac.nowcoder.com/acm/contest/18839/1018

#include<iostream>
using namespace std;
int main()
{
    int a=0;
    int b=0;
    cin>>a>>b;
    if((a+b)<=7)cout<<a+b<<endl;
    else
        {
            if (((a+b)%7)==0)cout<<7<<endl;
            else cout<<(a+b)%7<<endl;
         }
    
    return 0;
}

全部评论

相关推荐

06-11 17:39
门头沟学院 Java
小呆呆的大鼻涕:卧槽,用户彻底怒了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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