結果
問題 | No.799 赤黒かーどげぇむ |
ユーザー |
![]() |
提出日時 | 2019-03-17 22:32:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 27 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-07-08 00:36:04 |
合計ジャッジ時間 | 1,303 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
first = input().split()A = int(first[0])B = int(first[1])C = int(first[2])D = int(first[3])AB = range(A,B+1)CD = range(C,D+1)double = set(AB)&set(CD)countdouble = len(double)countAB = len(AB)countCD = len(CD)ans = countAB*countCD - countdoubleprint(ans)