提出 #75532473


ソースコード 拡げる

l1, r1, l2, r2 = map(int, input().split())
lst = [0]*101
lst[l1] += 1
lst[r1] += -1
lst[l2] += 1
lst[r2] += -1

for i in range(100):
  lst[i+1] += lst[i]

ans = 0
for v in lst:
  if v == 2:
    ans += 1
print(ans)

提出情報

提出日時
問題 B - Intersection
ユーザ rk_haskey
言語 Python (PyPy 3.11-v7.3.20)
得点 100
コード長 227 Byte
結果 AC
実行時間 56 ms
メモリ 79672 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 11
セット名 テストケース
Sample example_00.txt, example_01.txt, example_02.txt
All example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, hand_07.txt
ケース名 結果 実行時間 メモリ
example_00.txt AC 56 ms 79396 KiB
example_01.txt AC 56 ms 79424 KiB
example_02.txt AC 56 ms 79672 KiB
hand_00.txt AC 56 ms 79424 KiB
hand_01.txt AC 56 ms 79624 KiB
hand_02.txt AC 56 ms 79608 KiB
hand_03.txt AC 55 ms 79580 KiB
hand_04.txt AC 55 ms 79624 KiB
hand_05.txt AC 55 ms 79484 KiB
hand_06.txt AC 56 ms 79424 KiB
hand_07.txt AC 55 ms 79624 KiB