0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 06:51:59 +00:00
OI-codes/Luogu/T232302/T232302.cpp

20 lines
307 B
C++
Raw Normal View History

#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
long long a, b, c, ans;
int main() {
cin >> a >> b;
a ^= 9961, b ^= 9961;
a += 17;
b += a + 17;
a *= 81, b *= 81;
c = a + b - 4;
ans = (c / 10) * 10 + 1;
cout << ans % 9 << endl;
return 0;
}