aboutsummaryrefslogtreecommitdiff
path: root/contests/08-03-2022(Div.3)
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-07-24 13:11:33 +0300
committeromagdy7 <omar.professional8777@gmail.com>2023-07-24 13:11:33 +0300
commit6b548332bfc6469756526002971c422f43f86d0a (patch)
tree261fde23f07c3e20cea375030f0c52863b59228c /contests/08-03-2022(Div.3)
parentcff8cae22ee9c25d193ff976143813f93e658e55 (diff)
downloadcompetitive-programming-6b548332bfc6469756526002971c422f43f86d0a.tar.xz
competitive-programming-6b548332bfc6469756526002971c422f43f86d0a.zip
Removed some empty *.cpp files and Solved some new problems
Diffstat (limited to 'contests/08-03-2022(Div.3)')
-rwxr-xr-xcontests/08-03-2022(Div.3)/.cph/.A_Deletions_of_Two_Adjacent_Letters.cpp_691f772586c92182cd3ca9396098375f.prob1
-rwxr-xr-xcontests/08-03-2022(Div.3)/.cph/.B_DIV_MOD.cpp_276b8c89d227db4a79dee1685b9c289c.prob1
-rwxr-xr-xcontests/08-03-2022(Div.3)/A25
-rwxr-xr-xcontests/08-03-2022(Div.3)/A_Deletions_of_Two_Adjacent_Letters37
-rwxr-xr-xcontests/08-03-2022(Div.3)/B23
-rwxr-xr-xcontests/08-03-2022(Div.3)/B_DIV_MOD/B_DIV_MOD.cpp23
-rwxr-xr-xcontests/08-03-2022(Div.3)/C/C.cpp22
-rwxr-xr-xcontests/08-03-2022(Div.3)/D/D.cpp20
-rwxr-xr-xcontests/08-03-2022(Div.3)/E/E.cpp9
-rwxr-xr-xcontests/08-03-2022(Div.3)/tempCodeRunnerFilebin18640 -> 0 bytes
10 files changed, 0 insertions, 161 deletions
diff --git a/contests/08-03-2022(Div.3)/.cph/.A_Deletions_of_Two_Adjacent_Letters.cpp_691f772586c92182cd3ca9396098375f.prob b/contests/08-03-2022(Div.3)/.cph/.A_Deletions_of_Two_Adjacent_Letters.cpp_691f772586c92182cd3ca9396098375f.prob
deleted file mode 100755
index 52ce51e..0000000
--- a/contests/08-03-2022(Div.3)/.cph/.A_Deletions_of_Two_Adjacent_Letters.cpp_691f772586c92182cd3ca9396098375f.prob
+++ /dev/null
@@ -1 +0,0 @@
-{"name":"A. Deletions of Two Adjacent Letters","group":"Codeforces - Codeforces Round #776 (Div. 3)","url":"https://codeforces.com/contest/1650/problem/0","interactive":false,"memoryLimit":256,"timeLimit":2000,"tests":[{"id":1646751197936,"input":"5\nabcde\nc\nabcde\nb\nx\ny\naaaaaaaaaaaaaaa\na\ncontest\nt","output":"YES\nNO\nNO\nYES\nYES"},{"id":1646853307171,"input":"1\nqjjyzcsjy\ns","output":""}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"ADeletionsOfTwoAdjacentLetters"}},"batch":{"id":"b130b25d-3d3d-4fce-9d67-8671131df21f","size":1},"srcPath":"/home/peng/test/Problem_Solving/08-03-2022(Div.3)/A_Deletions_of_Two_Adjacent_Letters.cpp"} \ No newline at end of file
diff --git a/contests/08-03-2022(Div.3)/.cph/.B_DIV_MOD.cpp_276b8c89d227db4a79dee1685b9c289c.prob b/contests/08-03-2022(Div.3)/.cph/.B_DIV_MOD.cpp_276b8c89d227db4a79dee1685b9c289c.prob
deleted file mode 100755
index 7eca9cb..0000000
--- a/contests/08-03-2022(Div.3)/.cph/.B_DIV_MOD.cpp_276b8c89d227db4a79dee1685b9c289c.prob
+++ /dev/null
@@ -1 +0,0 @@
-{"name":"B. DIV + MOD","group":"Codeforces - Codeforces Round #776 (Div. 3)","url":"https://codeforces.com/contest/1650/problem/B","interactive":false,"memoryLimit":256,"timeLimit":2000,"tests":[{"id":1646752657834,"input":"5\n1 4 3\n5 8 4\n6 10 6\n1 1000000000 1000000000\n10 12 8","output":"2\n4\n5\n999999999\n5"},{"id":1646833131418,"input":"1\n1 100 1","output":"100"}],"testType":"single","input":{"type":"stdin"},"output":{"type":"stdout"},"languages":{"java":{"mainClass":"Main","taskClass":"BDIVMOD"}},"batch":{"id":"18dc3187-28ba-42e4-adb6-b241bf475a66","size":1},"srcPath":"/home/peng/test/Problem_Solving/08-03-2022(Div.3)/B_DIV_MOD.cpp"} \ No newline at end of file
diff --git a/contests/08-03-2022(Div.3)/A b/contests/08-03-2022(Div.3)/A
deleted file mode 100755
index 741b57a..0000000
--- a/contests/08-03-2022(Div.3)/A
+++ /dev/null
@@ -1,25 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-int main(){
- int tt;
- cin >> tt;
- while(tt--){
- string word;
- char ch;
- cin >> word;
- cin >> ch;
- int len = word.length();
- if(word[len/2 + 1] == ch){
- cout << word[len/2 + 1] << endl;
- cout << ch << endl;
- cout << "YES" << "\n";
- }
- else{
- cout << "NO" << "\n";
- }
- }
-
- return 0;
-} \ No newline at end of file
diff --git a/contests/08-03-2022(Div.3)/A_Deletions_of_Two_Adjacent_Letters b/contests/08-03-2022(Div.3)/A_Deletions_of_Two_Adjacent_Letters
deleted file mode 100755
index 3f7daa2..0000000
--- a/contests/08-03-2022(Div.3)/A_Deletions_of_Two_Adjacent_Letters
+++ /dev/null
@@ -1,37 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-void findMultOcc(vector<int> &indices, string str, char ch){
- for(int i = 0; i < str.length();i++){
- if(str[i] == ch){
- indices.push_back(i);
- }
- }
-}
-
-string solve(vector<int> indices){
- for(int i = 0; i < indices.size(); i++)
- {
- if(indices[i] >= 0 && indices[i] % 2 == 0){
- return "YES";
- }
- }
- return "NO";
-}
-
-int main(){
- int tt;
- cin >> tt;
- while(tt--){
- vector<int> indices;
- string word;
- char ch;
- cin >> word;
- cin >> ch;
- findMultOcc(indices, word, ch);
- cout << solve(indices) << '\n';
- }
-
- return 0;
-}
diff --git a/contests/08-03-2022(Div.3)/B b/contests/08-03-2022(Div.3)/B
deleted file mode 100755
index dd8bb54..0000000
--- a/contests/08-03-2022(Div.3)/B
+++ /dev/null
@@ -1,23 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-int modDiv(int r, int a){
- // law r % a == 0, return r-1 % a + r-1 /a, else return r % a + r /a;
- if(r % a == 0){
- return (r-1) % a + (r-1)/a;
- }
- return r % a + r / a;
-}
-
-int main(){
- int tt;
- while(tt--){
- cout << "tt: " << tt;
- int l, r, a;
- cin >> l >> r >> a;
- cout << modDiv(r, a);
- }
-
- return 0;
-} \ No newline at end of file
diff --git a/contests/08-03-2022(Div.3)/B_DIV_MOD/B_DIV_MOD.cpp b/contests/08-03-2022(Div.3)/B_DIV_MOD/B_DIV_MOD.cpp
deleted file mode 100755
index f861b3b..0000000
--- a/contests/08-03-2022(Div.3)/B_DIV_MOD/B_DIV_MOD.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-int modDiv(int r, int a){
- // law r % a == 0, return r-1 % a + r-1 /a, else return r % a + r /a;
- if(r % a == 0){
- return (r-1) % a + (r-1)/a;
- }
- return r % a + r / a;
-}
-
-int main(){
- int tt;
- cin >> tt;
- while(tt--){
- int l, r, a;
- cin >> l >> r >> a;
- cout << modDiv(r, a) << endl;
- }
-
- return 0;
-}
diff --git a/contests/08-03-2022(Div.3)/C/C.cpp b/contests/08-03-2022(Div.3)/C/C.cpp
deleted file mode 100755
index f63ebcd..0000000
--- a/contests/08-03-2022(Div.3)/C/C.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-int main(){
- int tt;
- cin >> tt;
- while(tt--){
- list<int> ls;
- int len;
- int x;
- cin >> len;
- for(int i = 0; i < len; i++){
- cin >> x;
- ls.push_back(x);
- }
-
-
- }
-
- return 0;
-} \ No newline at end of file
diff --git a/contests/08-03-2022(Div.3)/D/D.cpp b/contests/08-03-2022(Div.3)/D/D.cpp
deleted file mode 100755
index 0572f03..0000000
--- a/contests/08-03-2022(Div.3)/D/D.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-int solve()
-{
-
-}
-
-int main(){
- int tt;
- cin >> tt;
- while(tt--){
-
-
- }
-
-
- return 0;
-}
diff --git a/contests/08-03-2022(Div.3)/E/E.cpp b/contests/08-03-2022(Div.3)/E/E.cpp
deleted file mode 100755
index 2601cd5..0000000
--- a/contests/08-03-2022(Div.3)/E/E.cpp
+++ /dev/null
@@ -1,9 +0,0 @@
-#include<bits/stdc++.h>
-
-using namespace std;
-
-int main(){
- int tt;
-
- return 0;
-} \ No newline at end of file
diff --git a/contests/08-03-2022(Div.3)/tempCodeRunnerFile b/contests/08-03-2022(Div.3)/tempCodeRunnerFile
deleted file mode 100755
index 9154686..0000000
--- a/contests/08-03-2022(Div.3)/tempCodeRunnerFile
+++ /dev/null
Binary files differ