-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday_Nine.cpp
63 lines (43 loc) · 985 Bytes
/
day_Nine.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
Name - Himanshu POkhriyal
Date -- 3 April, 2024
Version -- 5.4
Question --1 Just One More Episode
Link --> https://www.codechef.com/practice/course/basic-programming-concepts/DIFF500/problems/ONEMORE
Approach & Solution:
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t, x;
cin>>t;
while(t--){
cin>>x;
if(x>24){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
}
Time complexity : O(t)
Space Complexity:O(1)
Question --2 Mana Points
Link -- https://www.codechef.com/practice/course/basic-programming-concepts/DIFF500/problems/MANAPTS?tab=statement
Approach & Solution:
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int t,x,y;
cin>>t;
while(t--){
cin>>x>>y;
cout<<floor(y/x)<<endl;
}
return 0;
}
Time complexity : O(t)
Space Complexity:O(1)
*/