結果

問題 No.18 うーさー暗号
ユーザー yamyam122
提出日時 2017-05-18 14:15:50
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 345 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 54,256 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-07 06:30:14
合計ジャッジ時間 906 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main(void){
    int size= 1024;
    char* Array = new char [size];
    cin >> Array;

    for(int i=0; Array[i]!='\0'; i++){
        Array[i] -= (i+1)%26;
        if(Array[i]<65){
            Array[i]+=26;            
        }
    }
    printf("%s", Array);
    
    delete[] Array;
    return 0;
}
0