結果

問題 No.904 サメトロ
ユーザー ngtkana
提出日時 2020-03-09 13:30:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 228 bytes
コンパイル時間 1,570 ms
コンパイル使用メモリ 164,808 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 21:02:48
合計ジャッジ時間 2,885 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define endl enjoy_codeforces
int main(){
    int n;std::cin>>n;
    int a=0,b=0;
    n--;
    while(n--){
        int x,y;std::cin>>x>>y;
        a+=x,b+=y;
    }
    std::cout<<std::min(a,b)+1<<'\n';
}
0