TopCoder

Caido
$\mathbb{W}\mathcal{aimai}\sim$

User's AC Ratio

60.0% (3/5)

Submission's AC Ratio

38.9% (7/18)

Tags

Description

Input Format

Output Format

Sample Input 1

5 5 10
1 2
1 3
1 4
1 5
add 5 4
query 1
add 1 1
query 2
add 2 2
query 3
add 3 3
query 4
add 4 4
query 5

Sample Output 1

1
5
6
7
11

Sample Input 2

5 5 10
4 2
1 3
1 4
5 1
add 2 1
add 1 4
add 5 2
add 3 2
add 4 2
query 1
query 2
query 3
query 4
query 5

Sample Output 2

10
12
10
9
10

Hints

Problem Source

Subtasks

No. Testdata Range Constraints Score
1 0~1 範例測資 0
2 0~52 無額外限制 100

Testdata and Limits

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