-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4dc69f
commit 9f16975
Showing
12 changed files
with
45 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <bits/stdc++.h> | ||
using namespace std; | ||
#define ll long long | ||
|
||
void solution(){ | ||
int x,y; | ||
cin >> x >> y; | ||
|
||
cout << ((x > y ? "CAR" : (x == y ? "SAME" : "BIKE") )) << "\n"; | ||
} | ||
|
||
int main(){ | ||
ios_base::sync_with_stdio(false); | ||
cin.tie(NULL); | ||
|
||
int t; | ||
cin >> t; | ||
while(t--) | ||
solution(); | ||
|
||
return 0; | ||
} |
22 changes: 22 additions & 0 deletions
22
CP Contests/CodeChef/Starters 26/2. Count the Notebooks/code.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <bits/stdc++.h> | ||
using namespace std; | ||
#define ll long long | ||
|
||
void solution(){ | ||
int n; | ||
cin >> n; | ||
|
||
cout << (n*10)<<"\n"; | ||
} | ||
|
||
int main(){ | ||
ios_base::sync_with_stdio(false); | ||
cin.tie(NULL); | ||
|
||
int t; | ||
cin >> t; | ||
while(t--) | ||
solution(); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Competitive Programming Contests |
67 changes: 0 additions & 67 deletions
67
Love Babbar DSA Sheet/1. Arrays/1. Reverse the array/code.cpp
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
103 changes: 0 additions & 103 deletions
103
Love Babbar DSA Sheet/6. Binary Trees/1. Level order traversal/code.cpp
This file was deleted.
Oops, something went wrong.
104 changes: 0 additions & 104 deletions
104
Love Babbar DSA Sheet/6. Binary Trees/2. Reverse Level Order Traversal/code.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.