結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
|
| 提出日時 | 2015-03-26 19:12:49 |
| 言語 | C++11(廃止可能性あり) (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 378 bytes |
| 記録 | |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 55,252 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-29 01:02:43 |
| 合計ジャッジ時間 | 822 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
ソースコード
#include<iostream>
using namespace std;
int num = 0;
int input_line;
int main(){
cin >> input_line;
while (num <= input_line){
if (num % 3 == 0){
cout << "Fizz" << endl;
} else if (num % 5 == 0){
cout << "Buzz" << endl;
}
else if (num % 3 == 0 && num % 5 == 0){
cout << "FizzBuzz" << endl;
}
else{
cout << num << endl;
}
num++;
}
return 0;
}