結果

問題 No.780 オフ会
ユーザー Too YoungToo Young
提出日時 2020-07-14 17:36:56
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 164 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 31,056 KB
実行使用メモリ 31,544 KB
最終ジャッジ日時 2024-04-28 22:31:51
合計ジャッジ時間 1,902 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,424 KB
testcase_01 AC 41 ms
31,160 KB
testcase_02 AC 41 ms
31,064 KB
testcase_03 AC 40 ms
31,080 KB
testcase_04 AC 40 ms
31,324 KB
testcase_05 AC 41 ms
31,080 KB
testcase_06 AC 41 ms
31,176 KB
testcase_07 AC 41 ms
30,848 KB
testcase_08 AC 41 ms
31,432 KB
testcase_09 AC 40 ms
31,104 KB
testcase_10 AC 41 ms
31,136 KB
testcase_11 AC 40 ms
31,168 KB
testcase_12 AC 40 ms
31,476 KB
testcase_13 AC 41 ms
31,312 KB
testcase_14 AC 41 ms
30,888 KB
testcase_15 AC 42 ms
31,544 KB
testcase_16 AC 40 ms
31,096 KB
testcase_17 AC 41 ms
31,056 KB
testcase_18 AC 41 ms
31,136 KB
testcase_19 AC 41 ms
31,368 KB
testcase_20 AC 41 ms
30,872 KB
testcase_21 AC 41 ms
31,192 KB
testcase_22 AC 41 ms
30,976 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
fscanf(STDIN,"%d %d",$guyNum,$girlNum);

$dist = $girlNum - ($guyNum+1);
if($dist >= 0){
    echo "YES\n";
}else{
    echo "NO\n";
}
echo abs($dist)."\n";
?>
0