From fbd4f2129ce8fe106391302896dd86e05b2f331b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 5 Dec 2025 04:08:22 +0900 Subject: add files --- archive/q/fizzbuzz/a/202/index.html | 67 +++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 archive/q/fizzbuzz/a/202/index.html (limited to 'archive/q/fizzbuzz/a/202/index.html') diff --git a/archive/q/fizzbuzz/a/202/index.html b/archive/q/fizzbuzz/a/202/index.html new file mode 100644 index 0000000..dd03a89 --- /dev/null +++ b/archive/q/fizzbuzz/a/202/index.html @@ -0,0 +1,67 @@ + + + + + 問題 #1 - 回答 #202 | Albatross.PHP + + + + + +
+ +
+
+

問題 #1 - 回答 #202

+ + +

FizzBuzz

+

+ いわゆる「FizzBuzz」を実装してください。 +1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 +

+

回答 #202

+

+ keitamax が 2024-03-09 01:56:36 に投稿 +

+

コード

+

+ 65 byte +

+
for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?'':"Buzz","\n"
+

実行結果

+
+
+
+ ステータス: 失敗 +
+
+

テストケース 1

+
+ ステータス: 実行時エラー +
+

標準出力

+

+Parse error: syntax error, unexpected end of file, expecting "," or ";" in php.wasm code on line 6
+
+
+

標準エラー出力

+

+
+
+ +
+ + + -- cgit v1.2.3-70-g09d2