結果
問題 | No.18 うーさー暗号 |
ユーザー |
|
提出日時 | 2019-08-21 16:51:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 1,409 ms |
コンパイル使用メモリ | 158,296 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 08:09:22 |
合計ジャッジ時間 | 2,052 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include<bits/stdc++.h>using namespace std;int main(){string s,ans;cin>>s;for(int i=0;i<s.size();++i){int tmp=s[i]-'@'-(i+1);while(tmp<=0)tmp+=26;ans+=tmp+'@';}cout<<ans<<endl;}