結果

問題 No.3043 yukicoderへようこそ!
ユーザー hirakich1000000007hirakich1000000007
提出日時 2019-04-01 21:57:25
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 777 bytes
コンパイル時間 756 ms
コンパイル使用メモリ 28,136 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-17 21:55:47
合計ジャッジ時間 761 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 0 ms
4,376 KB
testcase_02 AC 0 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 AC 1 ms
4,376 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, "1000") == 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