結果

問題 No.3110 Like CPCTF?
コンテスト
ユーザー ponjuice
提出日時 2025-04-09 23:19:24
言語 C++23
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++23 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 388 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 7,258 ms
コンパイル使用メモリ 442,312 KB
実行使用メモリ 9,168 KB
最終ジャッジ日時 2026-07-09 17:42:13
合計ジャッジ時間 8,427 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include "testlib.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

const int min_n = 1;
const int max_n = 30;

int main(){
    registerValidation();

    int n = inf.readInt(min_n, max_n);
    inf.readEoln();
    
    string s = inf.readString();
    assert((int)s.size() == n);
    for(auto c: s){
        assert('A' <= c && c <= 'Z');
    }

    inf.readEof();
}
0