0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-02-17 21:46:53 +00:00

21 lines
348 B
C++
Raw Normal View History

2020-08-06 01:55:51 +08:00
// R36448353
2021-11-19 17:01:13 +08:00
#include <bits/stdc++.h>
2020-08-06 01:55:51 +08:00
using namespace std;
int main() {
int n, t, ans;
n = t = ans = 0;
double a;
n = t = ans = 0;
cin >> n;
2021-11-19 17:01:13 +08:00
for (int i = 1; i <= n; i++) {
2020-08-06 01:55:51 +08:00
cin >> a >> t;
2021-11-19 17:01:13 +08:00
for (int j = 1; j <= t; j++) {
ans ^= int(j * a);
2020-08-06 01:55:51 +08:00
}
}
cout << ans << endl;
return 0;
}