0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 15:56:26 +00:00

P1161 开灯

R36448353
This commit is contained in:
Baoshuo Ren 2020-08-06 01:55:51 +08:00 committed by Baoshuo Ren
parent abd327c672
commit 496bfdadc8
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

21
problem/P1161/P1161.cpp Normal file
View File

@ -0,0 +1,21 @@
// 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;
}