結果
問題 |
No.8043 yukicoderへようこそ!
|
ユーザー |
![]() |
提出日時 | 2019-04-01 23:13:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 545 bytes |
コンパイル時間 | 1,059 ms |
コンパイル使用メモリ | 80,116 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 04:14:01 |
合計ジャッジ時間 | 1,061 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 6 |
ソースコード
#include <iostream> #include <vector> #include <map> #include <set> #include <queue> #include <string> #include <iomanip> #include <algorithm> #include <cmath> #include <stdio.h> using namespace std; #define int long long int MOD = 1000000007; signed main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0 and i % 5 == 0) { puts("FizzBuzz"); } else if (i % 3 == 0) { puts("Fizz"); } else if (i % 5 == 0) { puts("Buzz"); } else { cout << i << endl; } } }