結果

問題 No.799 赤黒かーどげぇむ
ユーザー boya978boya978
提出日時 2019-09-18 21:13:52
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,422 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 9,536 KB
最終ジャッジ日時 2023-09-23 02:24:24
合計ジャッジ時間 5,358 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,764 KB
testcase_01 AC 16 ms
7,920 KB
testcase_02 AC 1,422 ms
9,508 KB
testcase_03 AC 16 ms
7,748 KB
testcase_04 AC 24 ms
7,840 KB
testcase_05 AC 29 ms
7,996 KB
testcase_06 AC 44 ms
8,240 KB
testcase_07 AC 17 ms
7,852 KB
testcase_08 AC 18 ms
7,748 KB
testcase_09 AC 49 ms
8,244 KB
testcase_10 AC 16 ms
7,836 KB
testcase_11 AC 29 ms
7,828 KB
testcase_12 AC 15 ms
7,892 KB
testcase_13 AC 16 ms
7,892 KB
testcase_14 AC 16 ms
7,988 KB
testcase_15 AC 873 ms
9,128 KB
testcase_16 AC 1,363 ms
9,536 KB
testcase_17 AC 17 ms
7,768 KB
testcase_18 AC 104 ms
8,252 KB
testcase_19 AC 15 ms
7,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c,d = map(int,input().split())
red = [i for i in range(a,b+1)]
blk = [i for i in range(c,d+1)]
array=[]

for i in red:
    tmp=[i]
    for j in blk:
        tmp.append(j)
        if not tmp in array and tmp[0]!=tmp[1]:
            array.append(tmp)
        tmp=[i]
            
print(len(array))
0