QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#694084 | #5304. Money Game | subarudesu | WA | 1ms | 4020kb | C++23 | 271b | 2024-10-31 17:14:48 | 2024-10-31 17:14:56 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll=long long;
int n;double a[1001];
int main(){
cin>>n;
double s=0;
for(int i=1;i<=n;i++){
cin>>a[i];
s+=a[i];
}
printf("%.7lf ",s/(n+1)*2);
for(int i=1;i<n;i++){
printf("%.7lf ",s/(n+1));
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3884kb
input:
2 4 2
output:
4.0000000 2.0000000
result:
ok 2 numbers
Test #2:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
2 2 3
output:
3.3333333 1.6666667
result:
ok 2 numbers
Test #3:
score: 0
Accepted
time: 0ms
memory: 3884kb
input:
2 851648 722281
output:
1049286.0000000 524643.0000000
result:
ok 2 numbers
Test #4:
score: 0
Accepted
time: 0ms
memory: 4020kb
input:
3 450762 114467 367746
output:
466487.5000000 233243.7500000 233243.7500000
result:
ok 3 numbers
Test #5:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
4 2 3 5 1
output:
4.4000000 2.2000000 2.2000000 2.2000000
result:
ok 4 numbers
Test #6:
score: 0
Accepted
time: 0ms
memory: 3960kb
input:
5 616288 155735 783782 648639 349827
output:
851423.6666667 425711.8333333 425711.8333333 425711.8333333 425711.8333333
result:
ok 5 numbers
Test #7:
score: 0
Accepted
time: 0ms
memory: 3948kb
input:
6 1 2 5 5 1 2
output:
4.5714286 2.2857143 2.2857143 2.2857143 2.2857143 2.2857143
result:
ok 6 numbers
Test #8:
score: 0
Accepted
time: 0ms
memory: 3960kb
input:
100 283397 377774 494372 487546 143741 314831 934818 229251 78798 395137 407818 18761 516178 734330 838264 433107 858247 174903 905002 445936 58127 253493 844807 215023 37167 11961 885588 176935 156947 82314 21120 373809 226377 712113 302554 613417 368577 604224 811349 182256 179860 424904 544075 16...
output:
848873.9009901 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 424436.9504950 ...
result:
ok 100 numbers
Test #9:
score: 0
Accepted
time: 0ms
memory: 4016kb
input:
100 5 3 4 3 3 5 1 4 1 5 5 4 2 5 2 4 2 2 5 2 3 4 3 3 1 3 1 5 4 5 4 2 3 1 4 2 2 3 4 5 2 5 2 2 1 2 1 4 2 2 3 4 4 2 1 2 5 3 2 2 1 5 4 2 3 1 3 1 4 5 4 1 1 5 3 3 2 3 5 4 2 4 3 3 2 3 5 2 3 5 5 4 4 1 5 4 5 4 2 1
output:
6.0792079 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 3.0396040 ...
result:
ok 100 numbers
Test #10:
score: 0
Accepted
time: 0ms
memory: 3988kb
input:
1000 752085 536931 226066 866464 865683 685497 869505 833061 583665 542381 226489 183898 682629 584879 968426 414809 258683 315749 204443 89329 66644 255718 884710 690597 216353 59071 257910 665131 979147 688114 99343 929069 829135 674291 849479 242572 654330 268521 645445 96088 960241 507763 482377...
output:
1019649.5684316 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158 509824.7842158...
result:
ok 1000 numbers
Test #11:
score: 0
Accepted
time: 1ms
memory: 3972kb
input:
1000 5 4 4 5 2 2 1 1 2 4 4 5 4 4 5 4 2 1 1 5 5 3 5 2 4 3 2 2 5 4 4 3 2 1 1 1 2 5 3 4 4 5 2 5 4 1 5 4 3 2 1 5 5 5 3 4 1 4 1 5 3 4 2 5 5 4 2 3 4 2 3 5 2 4 4 4 3 4 2 3 1 1 3 5 5 3 4 3 5 3 1 5 5 4 1 1 5 3 1 1 5 1 4 2 2 3 1 2 2 3 2 3 3 5 4 1 2 4 3 5 2 5 1 3 4 4 4 5 5 3 2 4 1 4 2 4 4 4 4 4 2 3 3 1 4 4 4 3...
output:
6.0219780 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 3.0109890 ...
result:
ok 1000 numbers
Test #12:
score: -100
Wrong Answer
time: 1ms
memory: 4020kb
input:
10000 555267 855028 164928 642327 322766 137905 892693 768608 595311 65776 289777 973757 430764 328540 522735 2683 718992 189574 472939 64268 909931 465314 133959 665735 231887 255624 980840 597349 306389 287285 166135 812422 971286 552328 601121 51946 888371 940805 141463 481145 8270 701461 63887 9...
output:
964184716.0000000
result:
wrong answer 1st numbers differ - expected: '989682.6177382', found: '964184716.0000000', error = '973.2362842'