結果
問題 |
No.999 てん vs. ほむ
|
ユーザー |
![]() |
提出日時 | 2020-10-17 17:04:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 1,540 ms |
コンパイル使用メモリ | 165,284 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-21 02:52:45 |
合計ジャッジ時間 | 2,969 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 2 WA * 18 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; ll ans = 0; for (int i = 0; i < n; i++) { ll a, b; cin >> a >> b; ans += abs(a - b); } cout << ans << '\n'; }