TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

1 3
1 2 1
0 0
0 5
5 0

2 3
1 2 -1
2 1 3
0 0
0 5
5 0

1 3
1 2 -1
0 0
0 5
5 0

Sample Output 1

1

2

-1

Hints

NTUJ cannot show multiple samples, so we merged them here

Problem Source

Migrated from old NTUJ.

TOPC 2018

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 65536 131072
1 1000 65536 131072
2 1000 65536 131072
3 1000 65536 131072
4 1000 65536 131072
5 1000 65536 131072
6 1000 65536 131072
7 1000 65536 131072
8 1000 65536 131072
9 1000 65536 131072
10 1000 65536 131072
11 1000 65536 131072
12 1000 65536 131072
13 1000 65536 131072
14 1000 65536 131072
15 1000 65536 131072
16 1000 65536 131072
17 1000 65536 131072
18 1000 65536 131072
19 1000 65536 131072
20 1000 65536 131072
21 1000 65536 131072
22 1000 65536 131072
23 1000 65536 131072
24 1000 65536 131072
25 1000 65536 131072
26 1000 65536 131072
27 1000 65536 131072
28 1000 65536 131072
29 1000 65536 131072
30 1000 65536 131072
31 1000 65536 131072
32 1000 65536 131072
33 1000 65536 131072
34 1000 65536 131072
35 1000 65536 131072
36 1000 65536 131072
37 1000 65536 131072
38 1000 65536 131072
39 1000 65536 131072
40 1000 65536 131072
41 1000 65536 131072
42 1000 65536 131072
43 1000 65536 131072
44 1000 65536 131072
45 1000 65536 131072
46 1000 65536 131072
47 1000 65536 131072
48 1000 65536 131072
49 1000 65536 131072
50 1000 65536 131072
51 1000 65536 131072
52 1000 65536 131072
53 1000 65536 131072