結果
| 問題 |
No.799 赤黒かーどげぇむ
|
| コンテスト | |
| ユーザー |
monburan_0401
|
| 提出日時 | 2019-05-04 02:10:54 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 235 bytes |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-01-02 20:19:01 |
| 合計ジャッジ時間 | 1,659 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 WA * 3 |
ソースコード
# coding utf-8
s = 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 + 1
else:
e = d - a + 1
if e <= 0:
e = 0
ans = (b - a + 1) * (d - c + 1) - e
print(ans)
monburan_0401