結果

問題 No.46 はじめのn歩
ユーザー mondomondo
提出日時 2019-07-23 16:30:54
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 18,712 KB
実行使用メモリ 18,956 KB
最終ジャッジ日時 2023-09-08 09:22:50
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
18,700 KB
testcase_01 WA -
testcase_02 AC 15 ms
18,792 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 15 ms
18,700 KB
testcase_07 WA -
testcase_08 AC 15 ms
18,792 KB
testcase_09 AC 15 ms
18,832 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;
  } elseif (is_float($answer)){
      echo $answer+1;
  }
0