結果

問題 No.18 うーさー暗号
ユーザー gon_027gon_027
提出日時 2019-09-12 21:51:40
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 560 ms
コンパイル使用メモリ 63,360 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 17:11:56
合計ジャッジ時間 1,135 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main(){
    string s;
    cin >> s;

    for(int i = 0; i < s.size(); i++){
        s[i] -= i + 1;
        if(s[i] < 'A'){
            s[i] = 'Z';
        }
    }

    cout << s << endl;;
}
0