結果
問題 | No.8060 サンプルケース至上主義 |
ユーザー |
|
提出日時 | 2020-10-01 02:25:51 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 572 bytes |
コンパイル時間 | 2,025 ms |
コンパイル使用メモリ | 204,052 KB |
最終ジャッジ日時 | 2025-01-14 23:45:11 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ map<string, string> mp; mp["0"] = "Nothing"; mp["3.14159265"] = "pi"; mp["1112345678999+X"] = "九蓮宝燈"; mp["19m19p19s東南西北白發中+Y"] = "Thirteen Orphans"; mp["くぁwせdrftgyふじこlp"] = "さmpぇ"; string s; while(cin >> s){ if(mp[s] == ""){ if(s.back() == '.') cout << s.size()-1 << endl; else cout << s.size() << endl; }else{ cout << mp[s] << endl; } } return 0; }