結果
| 問題 |
No.8000 enuemu暗号
|
| コンテスト | |
| ユーザー |
nmnmnmnmnmnmnm
|
| 提出日時 | 2014-11-27 12:43:20 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 1,375 bytes |
| コンパイル時間 | 909 ms |
| コンパイル使用メモリ | 90,752 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2025-01-03 09:14:30 |
| 合計ジャッジ時間 | 1,478 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 |
ソースコード
#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を重複させてわかりやすくしてみました。
暗号は超難易度のものも作れてしまいそうですが、
プロコンの本題とは外れてしまうと思ったので簡単にしました。
(ちなみに対応表はサンプルからすべて推測できるようになっています。)
*/
nmnmnmnmnmnmnm