結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
|
提出日時 | 2019-06-29 08:27:44 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 42 ms / 2,000 ms |
コード長 | 200 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 52,096 KB |
最終ジャッジ日時 | 2024-07-02 05:23:39 |
合計ジャッジ時間 | 1,657 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 -= 1print(res)