結果
問題 | No.2098 [Cherry Alpha *] Introduction |
ユーザー |
|
提出日時 | 2022-10-04 22:01:03 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 435 bytes |
コンパイル時間 | 9,416 ms |
コンパイル使用メモリ | 336,388 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 12:45:52 |
合計ジャッジ時間 | 9,375 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include "testlib.h" #include <bits/stdc++.h> using namespace std; int main(){ registerValidation(); map<string,string> mp; mp["Zelkova and Cherry"]="1st"; mp["BANNED CONTEST"]="2nd"; mp["Stray Bullet"]="3rd"; mp["Early Summer Rain"]="4th"; mp["Do you know Cherry Contest?"]="Alpha"; string s=inf.readString(); ensuref(mp.find(s)!=mp.end(),"invalid string"); inf.readEof(); cout << mp[s] << "\n"; return 0; }