結果

問題 No.2835 Take and Flip
ユーザー sasa8uyauyasasa8uyauya
提出日時 2024-08-09 21:53:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 107,556 KB
最終ジャッジ日時 2024-08-09 21:53:45
合計ジャッジ時間 3,954 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,132 KB
testcase_01 AC 37 ms
52,228 KB
testcase_02 AC 36 ms
52,728 KB
testcase_03 AC 100 ms
102,852 KB
testcase_04 AC 100 ms
100,616 KB
testcase_05 AC 37 ms
52,792 KB
testcase_06 AC 120 ms
106,584 KB
testcase_07 AC 122 ms
107,228 KB
testcase_08 AC 113 ms
104,016 KB
testcase_09 AC 136 ms
102,328 KB
testcase_10 AC 136 ms
102,124 KB
testcase_11 AC 136 ms
102,104 KB
testcase_12 AC 136 ms
102,128 KB
testcase_13 AC 136 ms
102,480 KB
testcase_14 AC 73 ms
79,968 KB
testcase_15 AC 36 ms
52,624 KB
testcase_16 AC 94 ms
93,296 KB
testcase_17 AC 46 ms
61,576 KB
testcase_18 AC 108 ms
100,676 KB
testcase_19 AC 149 ms
107,556 KB
testcase_20 AC 68 ms
76,864 KB
testcase_21 AC 120 ms
106,808 KB
testcase_22 AC 97 ms
95,056 KB
testcase_23 AC 64 ms
75,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
a.sort()
print(sum(a[:n//2])+sum(a[n//2:]))
0