Submission #523937


Source Code Expand

Copy
n, m = list(map(int, input().split()))
c = 0
k = [0] * n
r = []
rr = []
for i in range(m):
  s, t = list(map(int, input().split()))
  r.append([s, t])
  k[s - 1:t] = list(map(lambda x: x + 1, l[s - 1:t]))

for i in range(m):
  s, t = r[i]
  if min(k[s - 1:t]) == 1:
    continue
  else:
    c += 1
    rr.append(i+1)

print(c)
print("¥r¥n".join(rr))

Submission Info

Submission Time
Task B - ドキドキデート大作戦高橋君
User purintai
Language Python3 (3.4.2)
Score 0
Code Size 370 Byte
Status
Exec Time 103 ms
Memory 9168 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt
Subtask1 0 / 30 subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt
All 0 / 70 subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask2_01.txt, subtask2_02.txt, subtask2_03.txt, subtask2_04.txt, subtask2_05.txt, subtask2_06.txt, subtask2_07.txt, subtask2_08.txt
Case Name Status Exec Time Memory
subtask0_sample_01.txt 90 ms 6748 KB
subtask0_sample_02.txt 90 ms 6760 KB
subtask0_sample_03.txt 90 ms 6756 KB
subtask1_01.txt 102 ms 9060 KB
subtask1_02.txt 103 ms 9060 KB
subtask1_03.txt 99 ms 8284 KB
subtask1_04.txt 95 ms 7908 KB
subtask1_05.txt 96 ms 7908 KB
subtask1_06.txt 90 ms 6752 KB
subtask1_07.txt 91 ms 6760 KB
subtask1_08.txt 90 ms 6760 KB
subtask1_09.txt 90 ms 6760 KB
subtask2_01.txt 101 ms 9056 KB
subtask2_02.txt 102 ms 9168 KB
subtask2_03.txt 91 ms 6760 KB
subtask2_04.txt 90 ms 6780 KB
subtask2_05.txt 91 ms 6756 KB
subtask2_06.txt 92 ms 6756 KB
subtask2_07.txt 90 ms 6756 KB
subtask2_08.txt 98 ms 8292 KB