题解 | #开学?#
开学?
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; }