結果
問題 | No.18 うーさー暗号 |
ユーザー | dongurixp |
提出日時 | 2015-10-30 16:02:29 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 414 ms |
コンパイル使用メモリ | 55,164 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 05:51:38 |
合計ジャッジ時間 | 1,024 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream> using namespace std; int main() { string str; cin >> str; for (int i = 0; i < str.length(); i++) { str[i] = (str[i] + 26 - (i % 26) - 1 - 'A') % 26 + 'A'; } cout << str << endl; return 0; }