結果

問題 No.1893 Cycle
ユーザー SKSK
提出日時 2022-12-20 09:48:59
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 32,148 KB
実行使用メモリ 32,404 KB
最終ジャッジ日時 2024-04-29 02:43:09
合計ジャッジ時間 1,666 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
30,920 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 38 ms
31,232 KB
testcase_04 AC 34 ms
31,024 KB
testcase_05 AC 34 ms
31,212 KB
testcase_06 AC 32 ms
31,032 KB
testcase_07 AC 35 ms
30,772 KB
testcase_08 AC 34 ms
31,164 KB
testcase_09 AC 33 ms
31,132 KB
testcase_10 WA -
testcase_11 AC 32 ms
31,096 KB
testcase_12 WA -
testcase_13 AC 35 ms
31,100 KB
testcase_14 AC 37 ms
31,056 KB
testcase_15 WA -
testcase_16 AC 34 ms
31,108 KB
testcase_17 AC 33 ms
31,188 KB
testcase_18 WA -
testcase_19 AC 37 ms
31,012 KB
testcase_20 WA -
testcase_21 AC 36 ms
30,964 KB
testcase_22 WA -
testcase_23 AC 35 ms
30,896 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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

sort($a);

if ($a[1]-$a[0] == 4 && $a[1] >= 8) {
    echo $a[0]+4;
}elseif ($a[1]-$a[0] == 4 && $a[1] <= 7) {
    echo $a[1]+4;
}elseif ($a[1]-$a[0] == 8) {
    echo $a[0]+4;
}


?>
0