結果
問題 |
No.18 うーさー暗号
|
ユーザー |
![]() |
提出日時 | 2016-05-04 23:16:47 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 5,000 ms |
コード長 | 277 bytes |
コンパイル時間 | 378 ms |
コンパイル使用メモリ | 56,048 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-07 06:08:17 |
合計ジャッジ時間 | 842 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 |
ソースコード
#include <iostream> #include <string> using namespace std; string S; int main() { cin >> S; string res; for (int i = 0; i < S.length(); i++) { int a = S[i] - 'A'; int b = (a + 2600 - (i + 1)) % 26; char c = 'A' + b; res += c; } cout << res << endl; return 0; }