0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 15:18:47 +00:00
OI-codes/Luogu/problem/P1534/P1534.cpp
2021-01-02 15:30:52 +08:00

18 lines
280 B
C++

// 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;
}