結果

問題 No.799 赤黒かーどげぇむ
ユーザー otsunekootsuneko
提出日時 2021-05-07 20:40:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 99 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 71,584 KB
最終ジャッジ日時 2023-10-13 11:31:53
合計ジャッジ時間 2,941 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
71,364 KB
testcase_01 AC 64 ms
71,312 KB
testcase_02 AC 62 ms
71,584 KB
testcase_03 AC 69 ms
71,368 KB
testcase_04 AC 67 ms
71,576 KB
testcase_05 AC 68 ms
71,192 KB
testcase_06 AC 69 ms
71,412 KB
testcase_07 AC 66 ms
71,180 KB
testcase_08 AC 68 ms
71,420 KB
testcase_09 AC 68 ms
71,344 KB
testcase_10 AC 66 ms
71,232 KB
testcase_11 AC 62 ms
71,276 KB
testcase_12 AC 63 ms
71,300 KB
testcase_13 AC 64 ms
71,360 KB
testcase_14 AC 63 ms
71,284 KB
testcase_15 AC 64 ms
71,420 KB
testcase_16 AC 66 ms
71,580 KB
testcase_17 AC 64 ms
71,304 KB
testcase_18 AC 64 ms
71,300 KB
testcase_19 AC 64 ms
71,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D = map(int,input().split())
ans = (B-A+1)*(D-C+1) - max(0, min(B,D)-max(A,C)+1)
print(ans)
0