結果

問題 No.18 うーさー暗号
ユーザー wateretaw
提出日時 2022-07-05 21:57:04
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 762 ms
コンパイル使用メモリ 62,976 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-16 09:13:38
合計ジャッジ時間 1,345 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main() {
    string s;
    cin >> s;
    for (int i = 0; i < s.length(); i++) {
        s[i] -= i+1;
        while (s[i]-'A' < 0) s[i] += 26;
    }
    cout << s << '\n';
    return 0;
}
0