結果

問題 No.780 オフ会
ユーザー dyechidyechi
提出日時 2019-03-28 11:06:48
言語 PHP
(8.3.4)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 31,004 KB
実行使用メモリ 31,512 KB
最終ジャッジ日時 2024-04-20 18:13:35
合計ジャッジ時間 1,675 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
31,280 KB
testcase_01 AC 37 ms
30,968 KB
testcase_02 AC 37 ms
31,372 KB
testcase_03 AC 37 ms
31,328 KB
testcase_04 AC 36 ms
31,404 KB
testcase_05 AC 37 ms
31,112 KB
testcase_06 AC 36 ms
31,180 KB
testcase_07 AC 36 ms
30,972 KB
testcase_08 AC 36 ms
31,052 KB
testcase_09 AC 35 ms
31,340 KB
testcase_10 AC 37 ms
31,512 KB
testcase_11 AC 35 ms
30,912 KB
testcase_12 AC 35 ms
31,188 KB
testcase_13 AC 35 ms
31,088 KB
testcase_14 AC 37 ms
31,300 KB
testcase_15 AC 35 ms
31,180 KB
testcase_16 AC 36 ms
31,196 KB
testcase_17 AC 35 ms
31,128 KB
testcase_18 AC 36 ms
30,912 KB
testcase_19 AC 36 ms
31,308 KB
testcase_20 AC 36 ms
31,084 KB
testcase_21 AC 37 ms
31,416 KB
testcase_22 AC 35 ms
31,408 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$s = trim(fgets(STDIN));
$s = explode(" ", $s);

if ($s[0] < $s[1]) {
    echo "YES".PHP_EOL;
    echo abs($s[0] + 1 - $s[1]).PHP_EOL;
} else {
    echo "NO".PHP_EOL;
    echo abs($s[0] + 1 - $s[1]).PHP_EOL;
}
?>
0