結果
問題 |
No.2049 POP
|
ユーザー |
|
提出日時 | 2022-08-21 03:52:41 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 9,514 ms |
コンパイル使用メモリ | 336,176 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-10 05:17:02 |
合計ジャッジ時間 | 10,132 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include "testlib.h" #include <bits/stdc++.h> using namespace std; int main(int argc, char* argv[]){ registerValidation(argc, argv); ios::sync_with_stdio(false); cin.tie(nullptr); int n=inf.readInt(3,100);inf.readEoln(); string s=inf.readToken();inf.readEoln(); ensuref(s.size()==n,"invalid |S|"); for(auto &nx : s){ ensuref('a'<=nx && nx<='z',"invalid char"); } inf.readEof(); for(int i=1;i<n-1;i++){cout << s[i];} cout << "\n"; return 0; }