Submission #1164000


Source Code Expand

input()
A = list(map(int, input().split())); A.sort()

s = 0
l = 0
for i in range(len(A)):
    if s * 2 < A[i]:
        l = i
    s += A[i]
print(len(A) - l)

Submission Info

Submission Time
Task B - Colorful Creatures
User naruaway
Language Python (3.4.3)
Score 400
Code Size 168 Byte
Status AC
Exec Time 109 ms
Memory 14320 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 400 / 400
Status
AC × 3
AC × 19
Set Name Test Cases
Sample sample1.txt, sample2.txt, sample3.txt
All sample1.txt, sample2.txt, sample3.txt, in1.txt, in10.txt, in11.txt, in12.txt, in13.txt, in2.txt, in3.txt, in4.txt, in5.txt, in6.txt, in7.txt, in8.txt, in9.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
in1.txt AC 105 ms 14224 KB
in10.txt AC 49 ms 7428 KB
in11.txt AC 103 ms 14320 KB
in12.txt AC 72 ms 14028 KB
in13.txt AC 73 ms 14048 KB
in2.txt AC 109 ms 13976 KB
in3.txt AC 104 ms 14224 KB
in4.txt AC 105 ms 14224 KB
in5.txt AC 48 ms 7188 KB
in6.txt AC 99 ms 13900 KB
in7.txt AC 104 ms 14148 KB
in8.txt AC 99 ms 13760 KB
in9.txt AC 26 ms 4340 KB
sample1.txt AC 17 ms 2940 KB
sample2.txt AC 17 ms 2940 KB
sample3.txt AC 17 ms 2940 KB