結果
問題 |
No.9002 FizzBuzz(テスト用)
|
ユーザー |
|
提出日時 | 2021-07-06 16:09:38 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 280 bytes |
コンパイル時間 | 486 ms |
コンパイル使用メモリ | 63,928 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-01 12:09:06 |
合計ジャッジ時間 | 903 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 4 |
ソースコード
#include<iostream> using namespace std; int main(){ int n; cin >> n; for(int i = 1; i <= n; i++) { if(i%3 == 0) cout<<"Fuzz"; if(i%5 == 0) cout<<"Buzz"; if(i%3 != 0 && i%5 != 0) cout<<i; cout<<endl; } cout<<endl; return 0; }