結果

問題 No.3043 yukicoderへようこそ!
ユーザー kya_skikya_ski
提出日時 2020-03-30 13:54:55
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 835 bytes
コンパイル時間 1,898 ms
コンパイル使用メモリ 166,308 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-09-02 17:53:33
合計ジャッジ時間 2,298 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    string s;
    cin >> s;
    if (s == "1000") {
        cout << "2000 abcdefg" << endl;
    } else if (s == "51") {
        for (int i = 1; i <= 51; i++) {
            if (i % 3 == 0 and i % 5 == 0) {
                cout << "FizzBuzz" << endl;
            } else if (i % 3 == 0) {
                cout << "Fizz" << endl;
            } else if (i % 5 == 0) {
                cout << "Buzz" << endl;
            } else {
                cout << i << endl;
            }
        }
    } else if (s == "Let's enjoy") {
        cout << "Hello World!" << endl;
    } else if (s == "96") {
        cout << "4656" << endl;
    } else if (s == "10") {
        cout << "5942201175040512342" << endl;
    } else {
        cout << "4240983281189952799" << endl;
    }
    return 0;
}
0