From e5c5affc9912e7726ee706d347877e7528d32807 Mon Sep 17 00:00:00 2001 From: Prachi Date: Fri, 22 Oct 2021 15:18:17 +0530 Subject: [PATCH 1/2] Adding Yet_another_meme_preblem.cpp to Codeforces --- Codeforces/Yet_another_meme_problem.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Codeforces/Yet_another_meme_problem.cpp diff --git a/Codeforces/Yet_another_meme_problem.cpp b/Codeforces/Yet_another_meme_problem.cpp new file mode 100644 index 0000000..fd0b215 --- /dev/null +++ b/Codeforces/Yet_another_meme_problem.cpp @@ -0,0 +1,25 @@ +#include +using namespace std; +#define int long long +signed main() +{ + int t; + cin>>t; + // t = 1; + while(t--) + { + int a, b; + cin>>a>>b; + + b=b+1; + int count = 0; + while(b>0) + { + b = b/10; + count++; + } + int ans = a*(count-1); + cout< Date: Sun, 24 Oct 2021 14:54:04 +0530 Subject: [PATCH 2/2] Update Yet_another_meme_problem.cpp --- Codeforces/Yet_another_meme_problem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Codeforces/Yet_another_meme_problem.cpp b/Codeforces/Yet_another_meme_problem.cpp index fd0b215..ac95fd3 100644 --- a/Codeforces/Yet_another_meme_problem.cpp +++ b/Codeforces/Yet_another_meme_problem.cpp @@ -1,3 +1,9 @@ +/*Problem Statement - You are given two integers A and B, calculate the number of pairs (a,b) such that 1≤a≤A, 1≤b≤B, +and the equation a⋅b+a+b=conc(a,b) is true; conc(a,b) is the concatenation of a and b (for example, conc(12,23)=1223, +conc(100,11)=10011). a and b should not contain leading zeroes.*/ + +//Problem Link - https://codeforces.com/contest/1288/problem/B + #include using namespace std; #define int long long