結果
問題 | No.3043 yukicoderへようこそ! |
ユーザー | okkuukenken |
提出日時 | 2022-06-03 21:50:56 |
言語 | C++23 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 289 bytes |
コンパイル時間 | 673 ms |
コンパイル使用メモリ | 77,732 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-21 01:47:52 |
合計ジャッジ時間 | 1,206 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
ソースコード
#include<iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 15 == 0) cout << "FizzBuzz" << endl; else if (i % 5 == 0) cout << "Buzz" << endl; else if (i % 3 == 0) cout << "Fizz" << endl; else cout << i << endl; } }