結果

問題 No.3043 yukicoderへようこそ!
ユーザー TiramisterTiramister
提出日時 2019-04-01 21:51:06
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,506 bytes
コンパイル時間 711 ms
コンパイル使用メモリ 64,896 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-05 04:37:04
合計ジャッジ時間 884 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 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 enjoy") {
        // 4.txt
        // No.9000 Hello World! (テスト用)
        // なんでWA?
        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;
    } else {
        // Hello World!を掬う
        std::cout << "Hello World!" << std::endl;
    }
    return 0;
}
0