結果

問題 No.799 赤黒かーどげぇむ
ユーザー anagohirame
提出日時 2019-03-17 21:24:18
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 124 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-07 20:05:38
合計ジャッジ時間 1,147 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())
if a <= c:
	num = max(0, b-c+1)
else:
	num = max(0, d-a+1)
print((b-a+1)*(d-c+1)-num)
0