結果

問題 No.46 はじめのn歩
ユーザー mondomondo
提出日時 2019-07-23 16:52:08
言語 PHP
(8.3.4)
結果
AC  
実行時間 17 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 958 ms
コンパイル使用メモリ 18,480 KB
実行使用メモリ 18,984 KB
最終ジャッジ日時 2023-09-08 10:04:47
合計ジャッジ時間 1,890 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,840 KB
testcase_01 AC 16 ms
18,740 KB
testcase_02 AC 15 ms
18,872 KB
testcase_03 AC 16 ms
18,736 KB
testcase_04 AC 17 ms
18,824 KB
testcase_05 AC 16 ms
18,776 KB
testcase_06 AC 16 ms
18,824 KB
testcase_07 AC 16 ms
18,984 KB
testcase_08 AC 16 ms
18,632 KB
testcase_09 AC 16 ms
18,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
  $line = fgets(STDIN);
  $array = explode(" ", $line);
    // print_r($array);
  $answer = $array[1] / $array[0];
  if (is_int($answer)){
      echo $answer;
  } else {
      echo floor($answer)+1;
  }
0