結果

問題 No.799 赤黒かーどげぇむ
ユーザー Ryushi-techRyushi-tech
提出日時 2020-08-27 22:01:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 180 ms
コンパイル使用メモリ 82,216 KB
実行使用メモリ 53,852 KB
最終ジャッジ日時 2024-04-25 22:41:47
合計ジャッジ時間 1,852 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,608 KB
testcase_01 AC 39 ms
52,108 KB
testcase_02 AC 38 ms
52,064 KB
testcase_03 AC 39 ms
53,852 KB
testcase_04 AC 38 ms
53,496 KB
testcase_05 AC 39 ms
53,200 KB
testcase_06 AC 38 ms
52,872 KB
testcase_07 AC 38 ms
52,472 KB
testcase_08 AC 38 ms
52,460 KB
testcase_09 AC 38 ms
51,828 KB
testcase_10 AC 37 ms
52,424 KB
testcase_11 AC 37 ms
53,584 KB
testcase_12 AC 39 ms
53,220 KB
testcase_13 AC 38 ms
53,464 KB
testcase_14 AC 39 ms
52,196 KB
testcase_15 AC 38 ms
53,060 KB
testcase_16 AC 38 ms
52,080 KB
testcase_17 AC 38 ms
52,236 KB
testcase_18 AC 38 ms
52,680 KB
testcase_19 AC 38 ms
52,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())
A = set(range(a, b + 1))
B = set(range(c, d + 1))
x = A & B
length = len(x)
print((b - a + 1) * (d - c + 1) - length)
0