TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3
1 0 0 1 0 0 1 99999999 1 2
1 1 1 1 0 0 1 99999999 2 2 2
1 1 1 1 1 1 1 99999999 3 2 2 2

Sample Output 1

1.00 0.00 0.00 3
1.00 0.00 0.00 121
0.58 0.58 0.58 64570081

Hints

Problem Source

NCPC 2026 Final Problem M

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 4000 1048576 1048576
1 4000 1048576 1048576
2 4000 1048576 1048576