結果
問題 | No.18 うーさー暗号 |
ユーザー |
![]() |
提出日時 | 2015-11-08 14:04:51 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 472 ms |
コンパイル使用メモリ | 59,616 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 05:51:58 |
合計ジャッジ時間 | 890 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include<iostream>#include<cstdio>#include<string>#include<cmath>using namespace std;int main(){string str;cin >> str;for(int i=0;i<str.length();i++){for(int j=0;j<=i;j++){if(str[i]=='A')str[i]='Z';else str[i]--;}}cout << str << endl;}