結果
問題 |
No.9002 FizzBuzz(テスト用)
|
ユーザー |
![]() |
提出日時 | 2020-04-28 15:36:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 244 bytes |
コンパイル時間 | 1,535 ms |
コンパイル使用メモリ | 167,208 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-24 20:28:36 |
合計ジャッジ時間 | 1,960 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 |
ソースコード
#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+="Fizz"; if(N%5==0)ans+="Buzz"; if(ans=="")ans=i; printf("%s\n",ans); } }