結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2019-05-04 02:18:00 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 305 bytes |
コンパイル時間 | 321 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,240 KB |
最終ジャッジ日時 | 2025-01-02 20:31:34 |
合計ジャッジ時間 | 1,581 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
# coding utf-8s = str(input())s = s.split(" ")a = int(s[0])b = int(s[1])c = int(s[2])d = int(s[3])if a < c:e = b - c + 1if d < b:e -= (b - d)else:e = d - a + 1if b < d:e -= (d - b)if e <= 0:e = 0ans = (b - a + 1) * (d - c + 1) - eprint(ans)