結果

問題 No.18 うーさー暗号
ユーザー trineutrontrineutron
提出日時 2019-07-24 01:24:03
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 1,785 ms
コンパイル使用メモリ 166,088 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-26 23:02:33
合計ジャッジ時間 2,198 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

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