結果

問題 No.46 はじめのn歩
ユーザー ant2357ant2357
提出日時 2016-03-13 18:52:16
言語 PHP
(8.3.4)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 232 bytes
コンパイル時間 595 ms
コンパイル使用メモリ 32,644 KB
実行使用メモリ 32,772 KB
最終ジャッジ日時 2023-10-26 03:23:32
合計ジャッジ時間 1,233 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
	//一行分を読み込む, 空白で分割してそれぞれ$aと$bの変数に入れる
	list($a, $b) = explode(" ", trim(fgets(STDIN)));

    //歩数	※端数切り上げ
	$steps = ceil($b / $a);

    printf("$steps\n");
0