結果
問題 | No.18 うーさー暗号 |
ユーザー |
![]() |
提出日時 | 2017-03-17 18:24:21 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 354 bytes |
コンパイル時間 | 456 ms |
コンパイル使用メモリ | 63,360 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 13:42:24 |
合計ジャッジ時間 | 1,005 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 13 |
ソースコード
#include <iostream> using namespace std; int main(){ int res,sub; string s; cin >> s; for(int i = 0; i < s.length(); i++){ res = s[i]-i%26; if('A'<=res){ printf("%c",res); }else if('A'>res){ sub = 'A'-res; printf("%c",'Z'-sub); } } cout << "\n"; return 0; }