提出 #7501519
ソースコード 拡げる
n,k=map(int,input().split()) r=list(map(int,input().split())) r.sort() ans=0 for i in range(n-k,n): ans=(r[i]+ans)/2 print(ans)
提出情報
提出日時 | |
---|---|
問題 | C - AtCoderプログラミング講座 |
ユーザ | akariki |
言語 | Python (3.4.3) |
得点 | 100 |
コード長 | 135 Byte |
結果 | AC |
実行時間 | 18 ms |
メモリ | 3188 KiB |
ジャッジ結果
セット名 | All | ||
---|---|---|---|
得点 / 配点 | 100 / 100 | ||
結果 |
|
セット名 | テストケース |
---|---|
All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt |
ケース名 | 結果 | 実行時間 | メモリ |
---|---|---|---|
00_sample_01.txt | AC | 18 ms | 3188 KiB |
00_sample_02.txt | AC | 17 ms | 2940 KiB |
00_sample_03.txt | AC | 17 ms | 2940 KiB |
00_sample_04.txt | AC | 17 ms | 2936 KiB |
test_01.txt | AC | 17 ms | 2940 KiB |
test_02.txt | AC | 17 ms | 2936 KiB |
test_03.txt | AC | 17 ms | 2940 KiB |
test_04.txt | AC | 17 ms | 2940 KiB |
test_05.txt | AC | 17 ms | 2940 KiB |
test_06.txt | AC | 17 ms | 3060 KiB |
test_07.txt | AC | 17 ms | 2940 KiB |
test_08.txt | AC | 17 ms | 2940 KiB |
test_09.txt | AC | 17 ms | 2940 KiB |
test_10.txt | AC | 17 ms | 2940 KiB |
test_11.txt | AC | 17 ms | 3060 KiB |
test_12.txt | AC | 17 ms | 2940 KiB |
test_13.txt | AC | 17 ms | 2940 KiB |
test_14.txt | AC | 17 ms | 2940 KiB |
test_15.txt | AC | 17 ms | 2940 KiB |
test_16.txt | AC | 17 ms | 2940 KiB |
test_17.txt | AC | 17 ms | 3060 KiB |
test_18.txt | AC | 17 ms | 2940 KiB |
test_19.txt | AC | 17 ms | 2940 KiB |
test_20.txt | AC | 17 ms | 2940 KiB |
test_21.txt | AC | 17 ms | 2940 KiB |
test_22.txt | AC | 17 ms | 2940 KiB |
test_23.txt | AC | 17 ms | 2940 KiB |
test_24.txt | AC | 17 ms | 2940 KiB |
test_25.txt | AC | 17 ms | 2940 KiB |
test_26.txt | AC | 17 ms | 2940 KiB |
test_27.txt | AC | 17 ms | 2940 KiB |
test_28.txt | AC | 17 ms | 2940 KiB |
test_29.txt | AC | 17 ms | 2940 KiB |
test_30.txt | AC | 17 ms | 2940 KiB |