File tree 3 files changed +45
-0
lines changed
CodeChef/Starters 58 Division 4 (Rated) 3 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
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 )
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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 )
You can’t perform that action at this time.
0 commit comments