結果

問題 No.3000 enuemu暗号
ユーザー nmnmnmnmnmnmnmnmnmnmnmnmnmnm
提出日時 2014-11-27 12:43:20
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 1,375 bytes
コンパイル時間 981 ms
コンパイル使用メモリ 86,664 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-01 22:18:54
合計ジャッジ時間 1,663 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include <vector>
 
using namespace std;
 
#define sz size()
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(c) (c).begin(), (c).end()
#define rep(i,a,b) for(int i=(a);i<(b);++i)
#define clr(a, b) memset((a), (b) ,sizeof(a))
 
#define MOD 1000000009
 
int main(){
  string s;
  cin >> s;
  //string abc = "abcdefghijklmnopqrstuvwxyz";
  string pass1 = "nmaeuivwxyzcdopqbfghrstjkl";
  string pass2 = "cqlmdrstfxyzbanopuvweghijk";
  string ans;
  rep(i,0,s.sz){
    ans += pass2[s[i]-'a'];
  }
  cout << ans << endl;
  return 0;
}
/*
シーザー暗号です。対応表をサンプルから推測します。
orangeとcipherでeとrを重複させてわかりやすくしてみました。
暗号は超難易度のものも作れてしまいそうですが、
プロコンの本題とは外れてしまうと思ったので簡単にしました。
(ちなみに対応表はサンプルからすべて推測できるようになっています。)
*/
0