結果

問題 No.2742 Car Flow
コンテスト
ユーザー ponjuice
提出日時 2024-04-17 22:56:36
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.90.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 436 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,882 ms
コンパイル使用メモリ 258,444 KB
実行使用メモリ 12,012 KB
最終ジャッジ日時 2026-07-04 12:20:55
合計ジャッジ時間 6,673 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other WA * 50
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include "testlib.h"
using namespace std;

const int MIN_N = 3;
const int MAX_N = 200'000;
const int MIN_A = 0;
const int MAX_A = 1;

int main() {
    registerValidation();

    int N = inf.readInt(MIN_N,MAX_N);
    inf.readEoln();
    
    for(int i = 0; i < N; i++){
        inf.readInt(MIN_A, MAX_A);
        if(i != N - 1){
            inf.readSpace();
        }else{
            inf.readEoln();
        }
    }
    inf.readEof();
}
0