結果

問題 No.593 4進FizzBuzz
ユーザー papinianuspapinianus
提出日時 2017-11-14 12:03:46
言語 PHP
(8.2.11)
結果
WA  
実行時間 -
コード長 233 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,096 KB
実行使用メモリ 15,964 KB
最終ジャッジ日時 2023-08-16 13:02:39
合計ジャッジ時間 2,626 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,220 KB
testcase_01 AC 7 ms
12,216 KB
testcase_02 AC 7 ms
12,220 KB
testcase_03 WA -
testcase_04 AC 7 ms
12,140 KB
testcase_05 AC 8 ms
12,232 KB
testcase_06 AC 7 ms
12,164 KB
testcase_07 AC 7 ms
12,168 KB
testcase_08 AC 7 ms
12,220 KB
testcase_09 AC 7 ms
12,164 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 6 ms
12,220 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 10 ms
15,832 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 10 ms
15,808 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 10 ms
15,856 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 10 ms
15,804 KB
testcase_31 WA -
testcase_32 AC 10 ms
15,904 KB
testcase_33 AC 10 ms
15,872 KB
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$p4 = trim(fgets(STDIN));
$num = base_convert(substr($p4, -2), 4, 10);
if($num % 15 === 0) { echo "FizzBuzz"; }
else if($num % 3 === 0) { echo "Fizz"; }
else if($num % 5 === 0) { echo "Buzz"; }
else { echo $p4; }
echo PHP_EOL;
0