Skip to content

Commit ca20507

Browse files
up
1 parent 3d509cd commit ca20507

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

428727L - Abhilash's Dog.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# user: Mousa-mahmood-hilal
2+
#Problem: codeforces 428727 - L.Abhilash's Dog
3+
m=int(input())
4+
n=int(input())
5+
count=0;s=0
6+
for i in range(n):
7+
t=int(input())
8+
s+=t
9+
if s<=m:
10+
count+=1
11+
print(count)

0 commit comments

Comments
 (0)