TopCoder

User's AC Ratio

100.0% (3/3)

Submission's AC Ratio

100.0% (3/3)

Tags

Description

Input Format

Output Format

Sample Input 1

3
0 0 2 0 2 2 0 2
-0.5 -0.5 1.5 -0.5 1.5 1.5 -0.5 1.5
1 0 1 1 0 1 0 0

Sample Output 1

-0.0000000000 -0.0000000000
0.5000000000 0.5000000000
0.5000000000 0.5000000000

Sample Input 2

5
35.45838 10.75771 20.30875 31.79885 -29.69125 -4.20115 -14.54162 -25.24229
-34.29322 -6.83750 -9.13374 -35.27865 42.86626 10.72135 17.70678 39.16250
1.76762 -11.97798 7.85087 -10.45716 -0.14913 21.54284 -6.23238 20.02202
-36.66981 -14.82302 -13.78842 -37.70441 40.21158 16.29559 17.33019 39.17698
-32.34050 -30.40612 12.37671 -42.74190 28.37671 15.25810 -16.34050 27.59388

Sample Output 2

0.4692521323 0.5576028062
0.4628180343 0.4444572639
0.2417009103 0.3745290840
0.4772064810 0.4857012755
0.5045677930 0.6426378565

Hints

Problem Source

YTP 2021 高中組程式挑戰營 p4

Subtasks

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

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 262144 65536 1 2
1 2000 262144 65536 1 2
2 2000 262144 65536 2
3 2000 262144 65536 2
4 2000 262144 65536 2
5 2000 262144 65536 2