結果

問題 No.8043 yukicoderへようこそ!
ユーザー Mister
提出日時 2020-08-01 11:15:39
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 1,384 bytes
コンパイル時間 663 ms
コンパイル使用メモリ 68,464 KB
最終ジャッジ日時 2025-01-12 12:27:34
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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