結果

問題 No.2437 Fragile Multiples of 11
コンテスト
ユーザー ebi_fly
提出日時 2023-08-11 18:26:33
言語 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  
実行時間 -
コード長 435 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,714 ms
コンパイル使用メモリ 336,356 KB
実行使用メモリ 11,912 KB
最終ジャッジ日時 2026-07-02 00:15:03
合計ジャッジ時間 8,919 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 34
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

/*
validation
*/

#include<bits/stdc++.h>
#include "testlib.h"

using ll = long long;

const ll n_min = 1, n_max = 100;

int main(){
    registerValidation();
    ll n = inf.readLong(n_min, n_max);
    inf.readEoln();
    for(int i = 0; i < n; i++) {
        char c = inf.readChar();
        if(i > 0) ensure('0' <= c && c <= '9');
        else ensure('1' <= c && c <= '9');
    }
    inf.readEoln();
    inf.readEof();
    return 0;
}
0