結果

問題 No.3022 縛りFizzBuzz (Easy)
ユーザー UMRgurashiUMRgurashi
提出日時 2022-07-25 22:00:21
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 550 bytes
コンパイル時間 1,955 ms
コンパイル使用メモリ 197,896 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-22 08:25:24
合計ジャッジ時間 3,613 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
#define int long long

using namespace std;



template<class... T>
void in(T&... a) {
	(cin >> ... >> a);
}


int ini() { int x; cin >> x; return x; }
string ins() { string x; cin >> x; return x; }



int i,a,b;
void solve() {
    i++;
    a++,a++;
	int N = ini();
	for(;i<=N;i++){
		if (i % 3 == 0)cout << "Fizz";
		if (i % 5 == 0)cout << "Buzz";
		if (i % 3 != 0 && i % 5 != 0)cout << i;
		cout << endl;
	}
}

signed main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout << fixed << setprecision(15);
	solve();
}
0