結果

問題 No.46 はじめのn歩
ユーザー PcclaPccla
提出日時 2017-07-12 23:37:13
言語 PHP
(8.2.11)
結果
AC  
実行時間 20 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 18,584 KB
実行使用メモリ 18,760 KB
最終ジャッジ日時 2023-07-29 11:28:55
合計ジャッジ時間 1,308 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
18,728 KB
testcase_01 AC 16 ms
18,648 KB
testcase_02 AC 16 ms
18,684 KB
testcase_03 AC 16 ms
18,636 KB
testcase_04 AC 16 ms
18,760 KB
testcase_05 AC 15 ms
18,672 KB
testcase_06 AC 16 ms
18,608 KB
testcase_07 AC 16 ms
18,652 KB
testcase_08 AC 20 ms
18,576 KB
testcase_09 AC 16 ms
18,676 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN, "%d %d", $step_count, $section);

$cal_result = ceil($section / $step_count);

echo ($step_count >= $section) ? 1 : $cal_result;
0