結果
問題 |
No.18 うーさー暗号
|
ユーザー |
![]() |
提出日時 | 2015-11-24 23:35:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 418 ms |
コンパイル使用メモリ | 54,872 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-13 17:22:30 |
合計ジャッジ時間 | 1,013 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 11 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { string s; cin >> s; for(int i=0;i<s.size();i++) { s[i] -= i+1; while(s[i] < 'A') s[i] = 'Z' - ('A' - s[i]) % 26 + 1; } cout << s << endl; return 0; }