mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-14 03:58:48 +00:00
20 lines
307 B
C++
20 lines
307 B
C++
#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;
|
|
}
|