結果
問題 | No.18 うーさー暗号 |
ユーザー |
![]() |
提出日時 | 2018-07-06 14:47:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 284 bytes |
コンパイル時間 | 1,604 ms |
コンパイル使用メモリ | 167,000 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 02:45:58 |
合計ジャッジ時間 | 2,278 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include<bits/stdc++.h>using namespace std;using Int = long long;//INSERT ABOVE HEREsigned main(){string s;cin>>s;Int n=s.size();for(Int i=0;i<n;i++){for(Int j=0;j<=i;j++){if(s[i]=='A') s[i]='Z';else s[i]--;}}cout<<s<<endl;return 0;}