結果

問題 No.46 はじめのn歩
ユーザー 123ちょちょ123ちょちょ
提出日時 2020-05-03 22:24:57
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 121 bytes
コンパイル時間 582 ms
コンパイル使用メモリ 11,956 KB
実行使用メモリ 12,320 KB
最終ジャッジ日時 2023-09-05 06:45:21
合計ジャッジ時間 1,399 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,284 KB
testcase_01 WA -
testcase_02 AC 7 ms
12,260 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 7 ms
12,248 KB
testcase_07 WA -
testcase_08 AC 7 ms
12,288 KB
testcase_09 AC 8 ms
12,236 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] : $a[1]/$a[0] + 1;

echo $ans . "\n";
0