题解 | #开学?#
开学?
https://www.nowcoder.com/practice/9cc35bd0754f4feca18e10e57c672467
#include <iostream> using namespace std; int main() { int a = 0 ,b = 0; cin >> a >> b; if ((a + b) < 7) { cout << a+b; } else { if (((b % 7) + a)>7) { cout << a + b % 7 -7; } else { cout << a + b % 7; } } } // 64 位输出请用 printf("%lld")