mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-05 10:18:47 +00:00
21 lines
348 B
C++
21 lines
348 B
C++
// R36448353
|
|
|
|
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int n, t, ans;
|
|
n = t = ans = 0;
|
|
double a;
|
|
n = t = ans = 0;
|
|
cin >> n;
|
|
for (int i = 1; i <= n; i++) {
|
|
cin >> a >> t;
|
|
for (int j = 1; j <= t; j++) {
|
|
ans ^= int(j * a);
|
|
}
|
|
}
|
|
cout << ans << endl;
|
|
return 0;
|
|
} |