結果

問題 No.799 赤黒かーどげぇむ
ユーザー boya978
提出日時 2019-09-18 21:13:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,593 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-07-16 02:47:26
合計ジャッジ時間 5,793 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

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