結果

問題 No.46 はじめのn歩
ユーザー PcclaPccla
提出日時 2017-07-12 23:37:13
言語 PHP
(8.3.4)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 148 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 32,276 KB
実行使用メモリ 31,480 KB
最終ジャッジ日時 2024-04-16 17:54:23
合計ジャッジ時間 1,063 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
31,480 KB
testcase_01 AC 40 ms
31,216 KB
testcase_02 AC 40 ms
31,272 KB
testcase_03 AC 40 ms
30,940 KB
testcase_04 AC 40 ms
31,100 KB
testcase_05 AC 40 ms
31,208 KB
testcase_06 AC 40 ms
31,372 KB
testcase_07 AC 40 ms
31,356 KB
testcase_08 AC 40 ms
31,140 KB
testcase_09 AC 40 ms
31,368 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