Skip to content

Commit

Permalink
Added CP contests section🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranSiddhu committed Feb 18, 2022
1 parent e4dc69f commit 9f16975
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 393 deletions.
22 changes: 22 additions & 0 deletions CP Contests/CodeChef/Starters 26/1. Car or Bus/code.cpp
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 CP Contests/CodeChef/Starters 26/2. Count the Notebooks/code.cpp
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;
}
1 change: 1 addition & 0 deletions CP Contests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Competitive Programming Contests
67 changes: 0 additions & 67 deletions Love Babbar DSA Sheet/1. Arrays/1. Reverse the array/code.cpp

This file was deleted.

1 change: 0 additions & 1 deletion Love Babbar DSA Sheet/2. Matrix/README.md

This file was deleted.

1 change: 0 additions & 1 deletion Love Babbar DSA Sheet/3. String/README.md

This file was deleted.

1 change: 0 additions & 1 deletion Love Babbar DSA Sheet/4. Searching & Sorting/README.md

This file was deleted.

1 change: 0 additions & 1 deletion Love Babbar DSA Sheet/5. LinkedList/README.md

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9f16975

Please sign in to comment.