Submission #76690305


Source Code Expand

def solve():
  n, m = map(int, input().split())
  lis = []
  mx = 1
  for i in range(m):
    l, r = map(int, input().split())
    mx = max(mx, r-l+1)
  print(*[(i)%mx+1 for i in range(n)])
t = int(input())
for i in range(t):
  solve()

Submission Info

Submission Time
Task A - Colorful Intervals
User suisankafe2
Language Python (CPython 3.13.7)
Score 300
Code Size 244 Byte
Status AC
Exec Time 259 ms
Memory 18536 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 1
AC × 30
Set Name Test Cases
Sample 01_sample_01.txt
All 01_sample_01.txt, 02_small_01.txt, 02_small_02.txt, 03_rand_1_01.txt, 03_rand_1_02.txt, 03_rand_1_03.txt, 03_rand_1_04.txt, 03_rand_1_05.txt, 04_rand_2_01.txt, 04_rand_2_02.txt, 04_rand_2_03.txt, 04_rand_2_04.txt, 04_rand_2_05.txt, 05_rand_3_01.txt, 05_rand_3_02.txt, 05_rand_3_03.txt, 05_rand_3_04.txt, 05_rand_3_05.txt, 05_rand_3_06.txt, 05_rand_3_07.txt, 05_rand_3_08.txt, 05_rand_3_09.txt, 05_rand_3_10.txt, 06_other_01.txt, 06_other_02.txt, 06_other_03.txt, 06_other_04.txt, 06_other_05.txt, 06_other_06.txt, 06_other_07.txt
Case Name Status Exec Time Memory
01_sample_01.txt AC 10 ms 9028 KiB
02_small_01.txt AC 199 ms 8908 KiB
02_small_02.txt AC 197 ms 9032 KiB
03_rand_1_01.txt AC 186 ms 9032 KiB
03_rand_1_02.txt AC 186 ms 8992 KiB
03_rand_1_03.txt AC 186 ms 9028 KiB
03_rand_1_04.txt AC 186 ms 8908 KiB
03_rand_1_05.txt AC 190 ms 8908 KiB
04_rand_2_01.txt AC 173 ms 9468 KiB
04_rand_2_02.txt AC 182 ms 9420 KiB
04_rand_2_03.txt AC 176 ms 9540 KiB
04_rand_2_04.txt AC 166 ms 9520 KiB
04_rand_2_05.txt AC 170 ms 9520 KiB
05_rand_3_01.txt AC 60 ms 18292 KiB
05_rand_3_02.txt AC 109 ms 18500 KiB
05_rand_3_03.txt AC 167 ms 18384 KiB
05_rand_3_04.txt AC 111 ms 18312 KiB
05_rand_3_05.txt AC 106 ms 18532 KiB
05_rand_3_06.txt AC 145 ms 12244 KiB
05_rand_3_07.txt AC 95 ms 18424 KiB
05_rand_3_08.txt AC 74 ms 12244 KiB
05_rand_3_09.txt AC 91 ms 18392 KiB
05_rand_3_10.txt AC 109 ms 18536 KiB
06_other_01.txt AC 259 ms 9028 KiB
06_other_02.txt AC 46 ms 18460 KiB
06_other_03.txt AC 193 ms 18412 KiB
06_other_04.txt AC 182 ms 12396 KiB
06_other_05.txt AC 177 ms 12444 KiB
06_other_06.txt AC 172 ms 12372 KiB
06_other_07.txt AC 186 ms 18464 KiB