0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-24 18:31:59 +00:00

P1534 不高兴的津津(升级版)

R38865539
This commit is contained in:
Baoshuo Ren 2020-09-25 21:13:37 +08:00 committed by Baoshuo Ren
parent 9808796487
commit 219f8bdb60
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

17
problem/P1534/P1534.cpp Normal file
View File

@ -0,0 +1,17 @@
// R38865539
#include <bits/stdc++.h>
using namespace std;
int main() {
int n, sum = 0, ans = 0, t1, t2;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> t1 >> t2;
sum += t1 + t2 - 8;
ans += sum;
}
cout << ans << endl;
return 0;
}