結果
問題 |
No.904 サメトロ
|
ユーザー |
|
提出日時 | 2020-03-28 12:22:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 361 bytes |
コンパイル時間 | 1,412 ms |
コンパイル使用メモリ | 159,344 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-02 11:01:37 |
合計ジャッジ時間 | 2,697 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 22 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<n;i++) using namespace std; typedef long long ll; typedef pair<int,int> pp; const int INF = 1e9; const int MOD = 1000000007; int main() { int n; cin >> n; int ans = 1; rep(i,n-1){ int a,b; cin >> a >> b; ans += b; } cout << ans << endl; return 0; }