Submission #6045588


Source Code Expand

Copy
N,A,B = map(int,input().split())
S = [int(input()) for _ in range(N)]

diff = max(S) - min(S)

if diff == 0:
  # Bが正なので
  print(-1)
else:
  # 差がB:2通りあるが
  P = B/diff
  # 和がAN
  Q = (A * N - P * sum(S)) / N
  print(P,Q)

Submission Info

Submission Time
Task A - 点数変換
User maspy
Language Python (3.4.3)
Score 100
Code Size 261 Byte
Status AC
Exec Time 179 ms
Memory 7072 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 45
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, sample_01.txt, sample_02.txt, sample_03.txt, subtask1_01.txt, subtask1_02.txt, subtask1_03.txt, subtask1_04.txt, subtask1_05.txt, subtask1_06.txt, subtask1_07.txt, subtask1_08.txt, subtask1_09.txt, subtask1_10.txt, subtask1_11.txt, subtask1_12.txt, subtask1_13.txt, subtask1_14.txt, subtask1_15.txt, subtask1_16.txt, subtask1_17.txt, subtask1_18.txt, subtask1_19.txt, subtask1_20.txt, subtask1_21.txt, subtask1_22.txt, subtask1_23.txt, subtask1_24.txt, subtask1_25.txt, subtask1_26.txt, subtask1_27.txt, subtask1_28.txt, subtask1_29.txt, subtask1_30.txt, subtask1_31.txt, subtask1_32.txt, subtask1_33.txt, subtask1_34.txt, subtask1_35.txt, subtask1_36.txt, subtask1_37.txt, subtask1_38.txt, subtask1_39.txt
Case Name Status Exec Time Memory
sample_01.txt AC 17 ms 3060 KB
sample_02.txt AC 17 ms 2940 KB
sample_03.txt AC 17 ms 2940 KB
subtask1_01.txt AC 75 ms 4512 KB
subtask1_02.txt AC 125 ms 6044 KB
subtask1_03.txt AC 121 ms 5536 KB
subtask1_04.txt AC 41 ms 3572 KB
subtask1_05.txt AC 157 ms 6944 KB
subtask1_06.txt AC 119 ms 5788 KB
subtask1_07.txt AC 166 ms 6940 KB
subtask1_08.txt AC 115 ms 5536 KB
subtask1_09.txt AC 55 ms 3956 KB
subtask1_10.txt AC 61 ms 4256 KB
subtask1_11.txt AC 87 ms 4896 KB
subtask1_12.txt AC 160 ms 6812 KB
subtask1_13.txt AC 66 ms 4380 KB
subtask1_14.txt AC 21 ms 3060 KB
subtask1_15.txt AC 109 ms 5532 KB
subtask1_16.txt AC 115 ms 5536 KB
subtask1_17.txt AC 54 ms 3956 KB
subtask1_18.txt AC 110 ms 5536 KB
subtask1_19.txt AC 170 ms 6944 KB
subtask1_20.txt AC 168 ms 7064 KB
subtask1_21.txt AC 165 ms 7068 KB
subtask1_22.txt AC 174 ms 7072 KB
subtask1_23.txt AC 164 ms 7072 KB
subtask1_24.txt AC 178 ms 7068 KB
subtask1_25.txt AC 178 ms 7068 KB
subtask1_26.txt AC 179 ms 7072 KB
subtask1_27.txt AC 174 ms 7068 KB
subtask1_28.txt AC 170 ms 7068 KB
subtask1_29.txt AC 166 ms 7068 KB
subtask1_30.txt AC 173 ms 7072 KB
subtask1_31.txt AC 167 ms 7072 KB
subtask1_32.txt AC 162 ms 7072 KB
subtask1_33.txt AC 167 ms 7068 KB
subtask1_34.txt AC 171 ms 7072 KB
subtask1_35.txt AC 174 ms 7072 KB
subtask1_36.txt AC 168 ms 7068 KB
subtask1_37.txt AC 166 ms 7068 KB
subtask1_38.txt AC 168 ms 7072 KB
subtask1_39.txt AC 165 ms 7068 KB