結果
問題 | No.2098 [Cherry Alpha *] Introduction |
ユーザー |
|
提出日時 | 2023-01-08 12:04:45 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 546 bytes |
コンパイル時間 | 1,465 ms |
コンパイル使用メモリ | 129,508 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-15 14:16:23 |
合計ジャッジ時間 | 1,966 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream> #include <unordered_map> using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { unordered_map<string, string> contests = { {"Zelkova", "1st"}, {"BANNED", "2nd"}, {"Stray", "3rd"}, {"Early", "4th"}, {"Do", "Alpha"}, }; string s; cin >> s; auto ent = contests.find(s); if (ent != contests.end()) { cout << ent->second << endl; } else { cout << "Not found: '" << s << "'" << endl; } }