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