結果
| 問題 |
No.8043 yukicoderへようこそ!
|
| コンテスト | |
| ユーザー |
Tlapesium
|
| 提出日時 | 2019-04-01 22:33:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 567 bytes |
| コンパイル時間 | 2,078 ms |
| コンパイル使用メモリ | 194,360 KB |
| 最終ジャッジ日時 | 2025-01-07 01:09:17 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 6 |
ソースコード
#include <bits/stdc++.h>
constexpr int INF = 2147483647;
constexpr long long int INF_LL = 9223372036854775807;
constexpr int MOD = 1000000007;
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
random_device rnd;
int main(int argc, char* argv[]) {
int N;
cin >> N;
for (int i = 0; i < N; i++) { //fizzbuzz
if (i % 3 == 0 && i % 5 == 0) {
cout << "FizzBuzz" << endl;
}
else if (i % 3 == 0) {
cout << "Fizz" << endl;
}
else if (i % 5 == 0) {
cout << "Buzz" << endl;
}
else {
cout << i << endl;
}
}
}
Tlapesium