結果

問題 No.3043 yukicoderへようこそ!
ユーザー TiramisterTiramister
提出日時 2019-04-01 21:52:28
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,384 bytes
コンパイル時間 515 ms
コンパイル使用メモリ 64,068 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-08-17 21:48:59
合計ジャッジ時間 1,082 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <string>

int main() {
    std::string S;
    std::cin >> S;

    if (S == "1000") {
        // 2.txt
        // No.9001 標準入出力の練習問題(テスト用)
        std::cout << "2000 abcdefg" << std::endl;

    } else if (S == "51") {
        // 3.txt
        // No.9002 FizzBuzz(テスト用)
        for (int i = 1; i <= 51; ++i) {
            if (i % 3 != 0 && i % 5 != 0) {
                std::cout << i << std::endl;
                continue;
            }
            if (i % 3 == 0) std::cout << "Fizz";
            if (i % 5 == 0) std::cout << "Buzz";
            std::cout << std::endl;
        }

    } else if (S == "Let's") {
        // 4.txt
        // No.9000 Hello World! (テスト用)
        std::cout << "Hello World!" << std::endl;

    } else if (S == "96") {
        // gen_case1.txt
        // No.480 合計
        std::cout << 4656 << std::endl;

    } else if (S == "10") {
        // test10.txt
        // No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
        std::cout << "5942201175040512342" << std::endl;

    } else if (S == "100") {
        // test100.txt
        // No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
        std::cout << "4240983281189952799" << std::endl;
    }

    return 0;
}
0