mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-30 15:16:26 +00:00
[愚人节比赛 2022] 辉光之针的小人族 ~ Little Princess
R72462119
This commit is contained in:
parent
e8604b8c2c
commit
a1286be606
19
Luogu/T232302/T232302.cpp
Normal file
19
Luogu/T232302/T232302.cpp
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user