You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chef went to a shop and buys a pens and b pencils. Each pen costs x units and each pencil costs y units. Now find what is the total amount Chef will spend to buy a pens and b pencils.
5
+
6
+
Input:
7
+
First-line will contain 4 space separated integers a, b, x and y respectively
You're given a number N. If N is divisible by 5 or 11 but not both then print "ONE"(without quotes). If N is divisible by both 5 and 11 then print "BOTH"(without quotes). If N is not divisible by 5 or 11 then print "NONE"(without quotes).
4
+
5
+
Input:
6
+
First-line will contain the number N
7
+
Output:
8
+
Print the answer in a newline.
9
+
Constraints
10
+
1≤N≤103
11
+
12
+
Sample Input 1:
13
+
50
14
+
Sample Output 1:
15
+
ONE
16
+
Sample Input 2:
17
+
110
18
+
19
+
EXPLANATION:
20
+
In the first example, 50 is divisible by 5, but not 11.
21
+
In the second example, 110 is divisible by both 5 and 11.
22
+
In the third example, 16 is not divisible by 5 or 11.
0 commit comments