結果

問題 No.311 z in FizzBuzzString
ユーザー papinianuspapinianus
提出日時 2016-06-08 09:39:53
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 167 bytes
コンパイル時間 1,251 ms
コンパイル使用メモリ 32,712 KB
実行使用メモリ 32,780 KB
最終ジャッジ日時 2023-10-25 02:45:12
合計ジャッジ時間 1,176 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
32,780 KB
testcase_01 AC 43 ms
32,780 KB
testcase_02 AC 43 ms
32,780 KB
testcase_03 AC 43 ms
32,780 KB
testcase_04 AC 42 ms
32,780 KB
testcase_05 AC 43 ms
32,780 KB
testcase_06 AC 42 ms
32,780 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$num = trim(fgets(STDIN));
$of15 = floor($num / 15);
$of3 = floor($num / 5);
$of5 = floor($num / 3);

echo (($of15 * 4)+(($of3 + $of5 - ($of15 * 2))*2)).PHP_EOL;
0