結果

問題 No.799 赤黒かーどげぇむ
ユーザー dyechidyechi
提出日時 2019-03-28 09:48:07
言語 PHP
(8.3.4)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 2,325 ms
コンパイル使用メモリ 31,888 KB
実行使用メモリ 31,596 KB
最終ジャッジ日時 2024-04-20 15:37:20
合計ジャッジ時間 2,455 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
31,428 KB
testcase_01 AC 36 ms
31,056 KB
testcase_02 AC 36 ms
31,276 KB
testcase_03 AC 37 ms
31,212 KB
testcase_04 AC 43 ms
31,192 KB
testcase_05 AC 44 ms
31,204 KB
testcase_06 AC 44 ms
31,240 KB
testcase_07 AC 44 ms
31,452 KB
testcase_08 AC 44 ms
31,104 KB
testcase_09 AC 45 ms
31,596 KB
testcase_10 AC 38 ms
31,240 KB
testcase_11 AC 36 ms
31,256 KB
testcase_12 AC 40 ms
31,432 KB
testcase_13 AC 38 ms
31,540 KB
testcase_14 AC 34 ms
31,284 KB
testcase_15 AC 36 ms
31,236 KB
testcase_16 AC 38 ms
31,284 KB
testcase_17 AC 36 ms
31,348 KB
testcase_18 AC 37 ms
30,964 KB
testcase_19 AC 36 ms
31,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

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

$counter = 0;
for ($i=$s[0]; $i<=$s[1]; $i++) {
	for ($j=$s[2]; $j<=$s[3]; $j++) {
		if ($i != $j) {
			$counter++;
		}
	}
}
echo $counter.PHP_EOL;
?>
0