Solution: #include<iostream>using namespace std;int main(){ int n,p; cin>>n>>p; if(n>p) { while(n%10!=0) { n++; p--; ...
Thursday, May 26, 2022
Calculate easy way (My created easy problem- Codeforces Style)
Posted by Zuhair Ahmed on May 26, 2022 with No comments
Thursday, May 19, 2022
How to reverse a string (with Codeforces Example)
Posted by Zuhair Ahmed on May 19, 2022 with No comments
The algorithm will first have to reverse the string and check with the second string. We can do this both in library function and also by using a loop.So the solution of first image is given below:#include<bits/stdc++.h>#include<string>using namespace std;int main(){ string s,t; cin>>s>>t; ...