結果
| 問題 | No.9002 FizzBuzz(テスト用) |
| ユーザー |
Ruizi_Luigi
|
| 提出日時 | 2015-07-24 10:48:18 |
| 言語 | PHP (8.5.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 241 bytes |
| 記録 | |
| コンパイル時間 | 2,458 ms |
| コンパイル使用メモリ | 37,496 KB |
| 実行使用メモリ | 37,872 KB |
| 最終ジャッジ日時 | 2026-03-30 06:47:10 |
| 合計ジャッジ時間 | 2,789 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
コンパイルメッセージ
PHP Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 4 Deprecated: Non-canonical cast (integer) is deprecated, use the (int) cast instead in Main.php on line 4 No syntax errors detected in Main.php
ソースコード
<?php
$n = trim(fgets(STDIN));
for ($i = 1; $i <= (integer)$n; $i++) {
$tmp = "";
if ($i%3 === 0) $tmp .= "Fizz";
if ($i%5 === 0) $tmp .= "Buzz";
echo (strlen($tmp) > 0 ? $tmp : (string)$i) . "<br>";
}
?>
Ruizi_Luigi