結果

問題 No.46 はじめのn歩
ユーザー 123ちょちょ123ちょちょ
提出日時 2020-05-03 22:31:49
言語 PHP
(8.3.4)
結果
AC  
実行時間 8 ms / 5,000 ms
コード長 123 bytes
コンパイル時間 507 ms
コンパイル使用メモリ 11,940 KB
実行使用メモリ 12,296 KB
最終ジャッジ日時 2023-09-05 06:56:38
合計ジャッジ時間 1,077 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
$a = explode(' ',trim(fgets(STDIN)));
$ans = ($a[1]%$a[0] == 0) ? $a[1]/$a[0] : ceil($a[1]/$a[0]);

echo $ans . "\n";
0