原题链接:开学?
#include <iostream> using namespace std; int main(){ int x,n; cin >> x >> n; int result = (x + n) % 7; if (result == 0) { result = 7; } cout << result; }