結果

問題 No.481 1から10
ユーザー iodo_shiba
提出日時 2018-08-30 21:03:56
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 207 bytes
コンパイル時間 760 ms
コンパイル使用メモリ 55,520 KB
実行使用メモリ 13,756 KB
最終ジャッジ日時 2024-09-13 20:35:05
合計ジャッジ時間 4,210 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 2 TLE * 1 -- * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>

int main(){
    int p,s;
    std::cin >> p;
    for(;;){
        std::cin >> s;
        if(s-p>1){
            std::cout<<p+1<<std::endl;
            break;
        }
        p=s;
    }
}
0