結果

問題 No.3043 yukicoderへようこそ!
ユーザー hirakich1000000007hirakich1000000007
提出日時 2019-04-01 21:55:59
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 774 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 28,220 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-17 21:54:12
合計ジャッジ時間 709 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 0 ms
4,376 KB
testcase_02 AC 0 ms
4,380 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 0 ms
4,380 KB
testcase_05 AC 0 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>
int main() {
    char s[2000];
    scanf("%s", s);
    if (strcmp(s, "96") == 0) {
        puts("4656");
    } else if (strcmp(s, "10") == 0) {
        puts("5942201175040512342");
    } else if (strcmp(s, "100") == 0) {
        puts("4240983281189952799");
    } else if (strcmp(s, "2") == 0) {
        puts("2000 abcdefg");
    } else if (strcmp(s, "51") == 0) {
        for (int i = 1; i <= 51; i++) {
            if (i % 15 == 0) {
                puts("FizzBuzz");
            } else if (i % 3 == 0) {
                puts("Fizz");
            } else if (i % 5 == 0) {
                puts("Buzz");
            } else {
                printf("%d\n", i);
            }
        }
    } else {
        puts("Hello World!");
    }
}
0