题解 | 开学?
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
#include <iostream>
using namespace std;
int main() {
int x,n;
cin>>x>>n;
int c=(x+n)%7;
if(c==0){
c=7;
}
cout<<c<<endl;
}
// 64 位输出请用 printf("%lld")
相加之后取余就可以了
