結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー uliba3uliba3
提出日時 2020-04-28 15:39:00
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 1,594 ms
コンパイル使用メモリ 169,796 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-05-03 17:39:58
合計ジャッジ時間 1,982 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main()
{
    int N;scanf("%d",&N);
    for(int i=1;i<N+1;i++)
    {
    string ans="";
    if(N%3==0)ans=ans+"Fizz";
    if(N%5==0)ans=ans+"Buzz";
    if(ans=="")ans=i;
    cout<<ans<<endl;
    }
}
0