結果

問題 No.18 うーさー暗号
ユーザー KunihikoWadaKunihikoWada
提出日時 2016-09-30 16:27:22
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 20,992 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-01 08:15:04
合計ジャッジ時間 675 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#define LENGTH 1024

int main(void) {
    char s[LENGTH + 2], c;
    int i = 0, j;
    while ((c = getchar()) != EOF) {
        s[i] = c;
        i++;
    }
    for (j = 0; j <= i; j++) {
        printf("%c", s[j] + ((j + 1) % 27));
    }
    printf("\n");


    return 0;
}
0