結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー arito_asu
提出日時 2020-06-13 22:51:10
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 636 ms
コンパイル使用メモリ 62,276 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-26 00:11:25
合計ジャッジ時間 886 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    if(n % 3 == 0) {
        if(n % 5 == 0) {
            cout << "FizzBuzz";
        }else{
            cout << "Fizz";
        }
    }else if(n % 5 == 0) {
        cout << "Buzz";
    }else{
        cout << n;
    }
}
0