結果

問題 No.9002 FizzBuzz(テスト用)
ユーザー ken8aisaken8aisa
提出日時 2021-06-12 11:45:31
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 474 bytes
コンパイル時間 1,679 ms
コンパイル使用メモリ 164,936 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-09 14:49:55
合計ジャッジ時間 2,022 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
	
}
0