結果
問題 | No.3000 enuemu暗号 |
ユーザー | tkzw_21 |
提出日時 | 2014-12-25 22:06:45 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 578 bytes |
コンパイル時間 | 1,421 ms |
コンパイル使用メモリ | 80,348 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-03 17:29:55 |
合計ジャッジ時間 | 1,168 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,384 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 1 ms
4,376 KB |
ソースコード
#include <iostream> #include <cmath> #include <vector> #include <utility> #include <queue> #include <map> #include <string> #include <cstring> #include <list> #include <algorithm> #define INF 114514 using namespace std; typedef pair<double,double> P; typedef long long ll; int main(void){ string s1 = "pfnovuaxqwufmbgrihcdejkolstyz"; string s2 = "orangecipherbqsuftlmdxynzvwjk"; map<char,char> dic; for(int i=0;i<s1.size();i++) dic[s1[i]] = s2[i]; string s; cin >> s; string ret; for(int i=0;i<s.size();i++) ret += dic[s[i]]; cout << ret << endl; return 0; }