結果

問題 No.3022 縛りFizzBuzz (Easy)
ユーザー furafura
提出日時 2020-04-13 02:14:58
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 1,954 ms
コンパイル使用メモリ 199,804 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-24 01:35:18
合計ジャッジ時間 3,140 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:13:16: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
   13 |         return NULL;
      |                ^~~~

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(){
	int n; scanf("%d",&n);
	for(int i='b'-'a';i<=n;i++){
		if(i%('p'-'a')==0) puts("FizzBuzz");
		else if(i%('d'-'a')==0) puts("Fizz");
		else if(i%('f'-'a')==0) puts("Fizz");
		else printf("%d\n",i);
	}
	return NULL;
}
0