Submission #3004009
Source Code Expand
n, q = gets.not_nil!.split.map(&.to_i) l = [] of Int32 r = [] of Int32 q.times do arr = gets.not_nil!.split.map(&.to_i) l << arr[0] - 1 r << arr[1] - 1 end temp = [] of Int32 n.times do temp << 0 end 0.upto(q - 1) do |i| l[i].upto(r[i]) do |j| temp[j] += 1 end end 0.upto(n - 1) do |k| temp[k] %= 2 if k < n - 1 print temp[k] else puts temp[k] end end
Submission Info
Submission Time | |
---|---|
Task | C - オセロ |
User | NiCd |
Language | Crystal (0.20.5) |
Score | 60 |
Code Size | 407 Byte |
Status | TLE |
Exec Time | 2108 ms |
Memory | 13692 KB |
Judge Result
Set Name | Sample | Subtask1 | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 60 / 60 | 0 / 40 | ||||||||
Status |
|
|
|
Set Name | Test Cases |
---|---|
Sample | 00_example_01.txt, 00_example_02.txt |
Subtask1 | 00_example_01.txt, 00_example_02.txt, 10_small_01.txt, 10_small_02.txt, 10_small_03.txt, 10_small_04.txt, 10_small_05.txt, 10_small_06.txt, 10_small_07.txt, 10_small_08.txt, 10_small_09.txt, 10_small_10.txt |
All | 00_example_01.txt, 00_example_02.txt, 10_small_01.txt, 10_small_02.txt, 10_small_03.txt, 10_small_04.txt, 10_small_05.txt, 10_small_06.txt, 10_small_07.txt, 10_small_08.txt, 10_small_09.txt, 10_small_10.txt, 20_rand_01.txt, 20_rand_02.txt, 20_rand_03.txt, 20_rand_04.txt, 20_rand_05.txt, 20_rand_06.txt, 20_rand_07.txt, 20_rand_08.txt, 20_rand_09.txt, 20_rand_10.txt, 30_max_01.txt, 30_max_02.txt, 30_max_03.txt, 30_max_04.txt, 30_max_05.txt, 40_corner_01.txt, 40_corner_02.txt, 40_corner_03.txt, 40_corner_04.txt, 40_corner_05.txt, 40_corner_06.txt, 40_corner_07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_example_01.txt | AC | 2 ms | 636 KB |
00_example_02.txt | AC | 2 ms | 636 KB |
10_small_01.txt | AC | 4 ms | 764 KB |
10_small_02.txt | AC | 2 ms | 636 KB |
10_small_03.txt | AC | 3 ms | 636 KB |
10_small_04.txt | AC | 3 ms | 2684 KB |
10_small_05.txt | AC | 2 ms | 636 KB |
10_small_06.txt | AC | 3 ms | 764 KB |
10_small_07.txt | AC | 3 ms | 636 KB |
10_small_08.txt | AC | 2 ms | 636 KB |
10_small_09.txt | AC | 2 ms | 636 KB |
10_small_10.txt | AC | 2 ms | 636 KB |
20_rand_01.txt | TLE | 2108 ms | 4860 KB |
20_rand_02.txt | AC | 1444 ms | 1660 KB |
20_rand_03.txt | AC | 498 ms | 2428 KB |
20_rand_04.txt | TLE | 2107 ms | 2428 KB |
20_rand_05.txt | AC | 524 ms | 1660 KB |
20_rand_06.txt | TLE | 2107 ms | 2940 KB |
20_rand_07.txt | AC | 1300 ms | 2428 KB |
20_rand_08.txt | AC | 89 ms | 892 KB |
20_rand_09.txt | AC | 471 ms | 2044 KB |
20_rand_10.txt | AC | 1029 ms | 1276 KB |
30_max_01.txt | TLE | 2108 ms | 11004 KB |
30_max_02.txt | TLE | 2108 ms | 13692 KB |
30_max_03.txt | TLE | 2107 ms | 12924 KB |
30_max_04.txt | TLE | 2108 ms | 8060 KB |
30_max_05.txt | TLE | 2108 ms | 10748 KB |
40_corner_01.txt | AC | 174 ms | 8060 KB |
40_corner_02.txt | TLE | 2108 ms | 9596 KB |
40_corner_03.txt | TLE | 2108 ms | 10364 KB |
40_corner_04.txt | AC | 555 ms | 12284 KB |
40_corner_05.txt | AC | 741 ms | 11004 KB |
40_corner_06.txt | AC | 174 ms | 6524 KB |
40_corner_07.txt | TLE | 2108 ms | 8444 KB |