Skip to content

Commit fa8afba

Browse files
committed
added starters 58 solution
1 parent f6295ce commit fa8afba

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Problem Code:ARRAYBREAK
2+
# Problem Name:Break the elements
3+
# Problem Link:https://www.codechef.com/START58D/problems/ARRAYBREAK
4+
5+
6+
7+
from itertools import count
8+
9+
10+
t = int(input())
11+
for i in range(t):
12+
n = int(input())
13+
count=0
14+
res = list(map(int, input().strip().split()))[:n]
15+
for i in range(0,len(res)):
16+
if res[i] % 2 != 0 :
17+
for i in range(0,len(res)):
18+
if res[i] % 2 == 0 :
19+
count+=1
20+
break
21+
print(count)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Problem Code:RANKLISTPAGE
2+
# Problem Name:RankList PAGES
3+
# Problem Link:https://www.codechef.com/START58D/problems/RANKLISTPAGE
4+
5+
6+
import math
7+
8+
n = int(input())
9+
for i in range(n):
10+
x=int(input())
11+
final=x/25
12+
print(math.ceil(final))
13+
14+
15+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Problem Code:REACHTARGET
2+
# Problem Name:Reach the Target
3+
# Problem Link:https://www.codechef.com/START58D/problems/REACHTARGET
4+
5+
n = int(input())
6+
for i in range(n):
7+
x,y=map(int,input().split(" "))
8+
final = x-y
9+
print(final)

0 commit comments

Comments
 (0)