Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, the main problem you meet now is Time Exceeded. And the exit code of your program is -9, which should be 0.

Please double check your code to solve this problem and try again.

Your Answer

122
36
62
62
101
165
5
1
224
52
191
58
145
71
204
131
194
7
5
6
77
106
146
42
9
37
0
17
4
25
81
5
51
188
129
47
125
7
9
189
34
28
287
70
20
36
120
63
43
109
256
7
84
10
82
47
9
48
46
111
237
5
368
25
14
61
19
53
92
67
258
26
193
9
48
93
10
28
7
105
179
5
233
400
40
0
162
11
147
8
9
33
35
39
10
162
23
54
26
31
187
49
103
99
11
23
13
173
0
171
48
57
50
119
204
55
22
305
11
129
19
21
68
18
174
30
28
9
74
64
133
26
106
64
207
6
53
15
56
23
2
15
136

JOJ Answer

Invalid graph. Exiting.