結果
問題 |
No.18 うーさー暗号
|
ユーザー |
|
提出日時 | 2015-05-18 21:18:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 185 bytes |
コンパイル時間 | 1,311 ms |
コンパイル使用メモリ | 158,172 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-06 05:29:39 |
合計ジャッジ時間 | 1,625 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 13 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; for(int i=0;i<s.length();i++){ int c = s[i] - 'A'; c = ((c-i) % 26 + 26)%26; s[i]=c + 'A'; } cout<<s<<endl; }