結果
問題 | No.904 サメトロ |
ユーザー |
![]() |
提出日時 | 2019-10-11 21:32:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 341 bytes |
コンパイル時間 | 1,463 ms |
コンパイル使用メモリ | 166,336 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-25 06:49:47 |
合計ジャッジ時間 | 2,500 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 22 |
ソースコード
#include<bits/stdc++.h>using namespace std;#define rep(i,N) for(int (i)=0;(i) < (N); (i)++)#define all(V) V.begin(), V.end()using i64 = int_fast64_t;using P = pair<i64,i64>;int main(){int N;cin >> N;i64 out = 0;i64 a,b;rep(i,N-1){cin >> a >> b;out += b;}cout << out + 1 << endl;}