結果
問題 |
No.9002 FizzBuzz(テスト用)
|
ユーザー |
![]() |
提出日時 | 2020-04-28 15:42:34 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 251 bytes |
コンパイル時間 | 1,571 ms |
コンパイル使用メモリ | 169,040 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-24 20:59:38 |
合計ジャッジ時間 | 2,105 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 3 |
ソースコード
#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+'0'; cout<<ans<<endl; } }