結果
| 問題 |
No.9002 FizzBuzz(テスト用)
|
| ユーザー |
|
| 提出日時 | 2018-06-28 19:18:37 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 329 bytes |
| コンパイル時間 | 408 ms |
| コンパイル使用メモリ | 56,028 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 23:31:47 |
| 合計ジャッジ時間 | 802 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 3 |
ソースコード
#include <iostream>
using namespace std;
int main()
{
int input;
cin>>input;
if(input%15==0)
{
cout << "FizzBuzz" << endl;
}
else if(input%3==0 )
{
cout << "Fizz" << endl;
}
else if(input%5==0)
{
cout << "Buzz" << endl;
}
else
{
cout << input << endl;
}
return 0;
}