結果
| 問題 | No.799 赤黒かーどげぇむ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-06-29 08:27:44 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 200 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 85,504 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2026-03-23 09:22:40 |
| 合計ジャッジ時間 | 1,241 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
a, b, c, d = map(int, input().split())
res = (b - a + 1) * (d - c + 1)
for i in range(min(a, b, c, d), max(a, b, c, d) + 1):
if a <= i and i <= b and c <= i and i <= d:
res -= 1
print(res)