結果
問題 | No.18 うーさー暗号 |
ユーザー |
|
提出日時 | 2018-06-08 15:50:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 577 ms |
コンパイル使用メモリ | 63,744 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 10:40:16 |
合計ジャッジ時間 | 1,177 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream>#include <string>using namespace std;int main(int argc, char* argv[]){string S;cin>>S;int i;for (i=0;i<S.length();i++){char ch;for (int j=1;j<=i+1;j++){ch=S[i]-1;if (ch<'A'){ch='Z';}S[i]=ch;}}cout<<S<<endl;return 0;}