結果

問題 No.18 うーさー暗号
コンテスト
ユーザー Series_205
提出日時 2019-10-21 20:52:23
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 410 ms
コンパイル使用メモリ 53,856 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-02 17:51:30
合計ジャッジ時間 852 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 5 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int n;
string s;
int main(){
    cin>>s;
    n=s.size();
    for(int i=0;i<n;i++){
        s[i]-=(i+1);
        while(s[i]<'A')s[i]+=26;
    }
    cout<<s<<endl;
    return 0;
}
0