結果

問題 No.3000 enuemu暗号
ユーザー alpha_virginisalpha_virginis
提出日時 2015-12-27 16:57:15
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 606 bytes
コンパイル時間 1,379 ms
コンパイル使用メモリ 161,244 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-19 11:15:40
合計ジャッジ時間 1,811 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

int main() {

  std::string table[3][2];
  table[0][0] = "pfnovu";
  table[0][1] = "orange";
  table[1][0] = "axqwuf";
  table[1][1] = "cipher";
  table[2][0] = "mbgrihcdejkolsty";
  table[2][1] = "bqsuftlmdxynzvwj";

  std::string str, res;
  std::cin >> str;
  for(int i = 0; i < (int)str.size(); ++i) {
    for(int j = 0; j < 3; ++j) {
      for(int k = 0; k < (int)table[j][0].size(); ++k) {
        if( str[i] == table[j][0][k] ) {
          res += table[j][1][k];
          goto label;
        }
      }
    }
  label:;
  }
  std::cout << res << std::endl;
  
  return 0;
}
0