結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
ken8aisa
|
| 提出日時 | 2021-06-12 11:45:31 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 474 bytes |
| 記録 | |
| コンパイル時間 | 1,693 ms |
| コンパイル使用メモリ | 165,076 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-12-16 05:00:01 |
| 合計ジャッジ時間 | 2,129 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//#define int long long
#define rep(i, a, b) for (int i = a; i < b; i++)
#define rrep(i, a, b) for (int i = a; i >= b; i--)
#define ALL(x) std::begin(x), std::end(x)
int main()
{
cin.tie(0);
ios::sync_with_stdio(false);
constexpr char endl = '\n';
int N; cin >> N;
if(N%15 ==0) cout << "FizzBuzz\n";
else if(N%3==0) cout << "Fizz\n";
else if(N%5==0) cout << "Buzz\n";
else cout << N << endl;
}
ken8aisa