Channel Avatar

DCODER @UCEdVltuHd8O6hrPKJh_lAIA@youtube.com

912 subscribers

Daily Quiz Explore coding with me [ DCODER ☑️ ] Keep Suppo


Welcoem to posts!!

in the future - u will be able to do some more stuff here,,,!! like pat catgirl- i mean um yeah... for now u can only see others's posts :c

DCODER
Posted 3 months ago

Do You Want to Know how to create this types of Images? So Please comment down "Yes" I will make a video on this. 🖕🏻

10 - 6

DCODER
Posted 3 months ago

Most Trending 🔥 AI Tools Which You Should Know 🫰 #ai #aitool

16 - 3

DCODER
Posted 3 months ago

Find Solution of Problem of Any Book watch video on watch page

2 - 0

DCODER
Posted 3 months ago

Top 3 Website For AI Video Generator Free and Unlimited Go and Watch 🔥 watch video on watch page

3 - 0

DCODER
Posted 3 months ago

New Video Out Go and Watch 🔴 watch video on watch page

3 - 0

DCODER
Posted 10 months ago

Are You Guys Ready For Today's Contest 🔥 🔥 💪

Get Solution at This Link: dcoder-frontend.onrender.com/

2 - 0

DCODER
Posted 11 months ago

Are You Guys Ready For Today's Contest

Get Solution at This Link: dcoder-frontend.onrender.com/

1 - 0

DCODER
Posted 1 year ago

ARE YOU GUYES READY?

2 - 0

DCODER
Posted 1 year ago

Watch New Video ANALOG CLOCK ⏰
Source Code Link is in Description

Post Link: https://youtu.be/Zt6krOfAd8k

2 - 0

DCODER
Posted 1 year ago

#include <bits/stdc++.h>

using namespace std;


int main() {
int T;
cin >> T;

while (T--) {
long long A, B, K;
cin >> A >> B >> K;

int res=0;
while(true){
if(B%K==0 && B/K>=A){
res++;
B=B/K;
}
else if( B%K==0 ){
res= res+B-A;
break;
}
else{
res= res+B%K;
B=B-B%K;
}

}
cout<<res<<endl;

}
return 0;
}


A to B. STARTTER 135 SOLUTION

2 - 0