結果

問題 No.18 うーさー暗号
ユーザー KKT89
提出日時 2020-01-11 08:59:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 1,253 ms
コンパイル使用メモリ 92,216 KB
最終ジャッジ日時 2025-01-08 17:04:32
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <math.h>
using namespace std;

int main(){
    string s; cin >> s;
    for(int i=0;i<s.size();i++){
        s[i]=(s[i]-'A'-i-1+s.size())%26+'A';
    }
    cout << s << endl;
}
0