結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー uliba3
提出日時 2020-04-28 15:39:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 1,642 ms
コンパイル使用メモリ 168,252 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 20:44:52
合計ジャッジ時間 2,019 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 4
権限があれば一括ダウンロードができます

ソースコード

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