結果
| 問題 | No.18 うーさー暗号 | 
| コンテスト | |
| ユーザー |  leaf+ | 
| 提出日時 | 2019-04-17 13:03:04 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 324 bytes | 
| コンパイル時間 | 502 ms | 
| コンパイル使用メモリ | 56,776 KB | 
| 実行使用メモリ | 6,944 KB | 
| 最終ジャッジ日時 | 2024-09-22 08:29:35 | 
| 合計ジャッジ時間 | 1,160 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 13 | 
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
    string s, an = "";
    int i, qt;
    cin >> s;
    for (i = 0; i < s.length(); i++) {
        qt = s[i];
        qt -= i + 1;
        while (qt < 65) {
            qt += 26;
        }
        an += qt;
    }
    cout << an << endl;
    return 0;
}
            
            
            
        