TopCoder

Aestivate
$$\Huge謝謝$$

User's AC Ratio

87.5% (7/8)

Submission's AC Ratio

39.4% (13/33)

Tags

Description

Input Format

Output Format

Sample Input 1

0

Sample Output 1

1

Sample Input 2

1
0 0 1 1

Sample Output 2

499122178

Sample Input 3

2
0 0 1 1
0 1 1 0

Sample Output 3

748683267

Sample Input 4

4
0 0 3 -2
3 -2 0 3
0 3 -3 -2
-3 -2 0 0

Sample Output 4

499122181

Hints

Problem Source

Subtasks

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

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2500 1048576 65536 1 2
1 2500 1048576 65536 1 2
2 2500 1048576 65536 1 2
3 2500 1048576 65536 1 2
4 2500 1048576 65536 2
5 2500 1048576 65536 2
6 2500 1048576 65536 2
7 2500 1048576 65536 2
8 2500 1048576 65536 2
9 2500 1048576 65536 2
10 2500 1048576 65536 2
11 2500 1048576 65536 2
12 2500 1048576 65536 2
13 2500 1048576 65536 2
14 2500 1048576 65536 2
15 2500 1048576 65536 2
16 2500 1048576 65536 2
17 2500 1048576 65536 2
18 2500 1048576 65536 2
19 2500 1048576 65536 2
20 2500 1048576 65536 2
21 2500 1048576 65536 2
22 2500 1048576 65536 2
23 2500 1048576 65536 2
24 2500 1048576 65536 2
25 2500 1048576 65536 2
26 2500 1048576 65536 2
27 2500 1048576 65536 2
28 2500 1048576 65536 2
29 2500 1048576 65536 2
30 2500 1048576 65536 2
31 2500 1048576 65536 2
32 2500 1048576 65536 2
33 2500 1048576 65536 2
34 2500 1048576 65536 2
35 2500 1048576 65536 2
36 2500 1048576 65536 2
37 2500 1048576 65536 2
38 2500 1048576 65536 2
39 2500 1048576 65536 2
40 2500 1048576 65536 2
41 2500 1048576 65536 2
42 2500 1048576 65536 2
43 2500 1048576 65536 2
44 2500 1048576 65536 2
45 2500 1048576 65536 2
46 2500 1048576 65536 2
47 2500 1048576 65536 2
48 2500 1048576 65536 2
49 2500 1048576 65536 2
50 2500 1048576 65536 2
51 2500 1048576 65536 2
52 2500 1048576 65536 2
53 2500 1048576 65536 2
54 2500 1048576 65536 2
55 2500 1048576 65536 2
56 2500 1048576 65536 2
57 2500 1048576 65536 2
58 2500 1048576 65536 2
59 2500 1048576 65536 2
60 2500 1048576 65536 2
61 2500 1048576 65536 2
62 2500 1048576 65536 2
63 2500 1048576 65536 2
64 2500 1048576 65536 2
65 2500 1048576 65536 2
66 2500 1048576 65536 2
67 2500 1048576 65536 2
68 2500 1048576 65536 2
69 2500 1048576 65536 2
70 2500 1048576 65536 2
71 2500 1048576 65536 2
72 2500 1048576 65536 2
73 2500 1048576 65536 2
74 2500 1048576 65536 2
75 2500 1048576 65536 2
76 2500 1048576 65536 2
77 2500 1048576 65536 2
78 2500 1048576 65536 2
79 2500 1048576 65536 2
80 2500 1048576 65536 2
81 2500 1048576 65536 2
82 2500 1048576 65536 2
83 2500 1048576 65536 2
84 2500 1048576 65536 2
85 2500 1048576 65536 2
86 2500 1048576 65536 2
87 2500 1048576 65536 2
88 2500 1048576 65536 2
89 2500 1048576 65536 2
90 2500 1048576 65536 2
91 2500 1048576 65536 2
92 2500 1048576 65536 2
93 2500 1048576 65536 2
94 2500 1048576 65536 2
95 2500 1048576 65536 2
96 2500 1048576 65536 2
97 2500 1048576 65536 2
98 2500 1048576 65536 2
99 2500 1048576 65536 2
100 2500 1048576 65536 2
101 2500 1048576 65536 2
102 2500 1048576 65536 2
103 2500 1048576 65536 2