MᏫᎻᎯᎷᎷᎬᎠ
klimi
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
He is happy about me insulting him
klimi
What
BinaryByter
MᏫᎻᎯᎷᎷᎬᎠ
/ban Don't warn a Lunatic
klimi
Whatever
Anonymous
? I'm confuses what happens right know??
Anonymous
Hmm
BinaryByter
klimi
I'll go to pm
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
MᏫᎻᎯᎷᎷᎬᎠ
I can learn css & html at anytime
MᏫᎻᎯᎷᎷᎬᎠ
I'm just lazy to so
BinaryByter
"to so" - english verb
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
klimi
Anonymous
Can promote ig?
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Not a human
Parra
use msvc and cmake from GUI
MᏫᎻᎯᎷᎷᎬᎠ
Stop flirting with it
Anonymous
I'm robot I already tell you
Anonymous
👍
klimi
klimi
Calm down
MᏫᎻᎯᎷᎷᎬᎠ
Yeah
Anonymous
You all are funny
Anonymous
Good night
klimi
Gn
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
Lmao xDDD
klimi
MᏫᎻᎯᎷᎷᎬᎠ
Nothing
klimi
Ok
klimi
MᏫᎻᎯᎷᎷᎬᎠ
Anonymous
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
long long int N=0,i,m=0,d,dig,k=0,cntt=0,ans=0;
vector<int> a;
cin>>N>>d;
k=ans=N;
while(k>1)
{
dig=k%10;
a.push_back(dig);
k/=10;
cntt++;
}
reverse(a.begin(),a.end());
for(i=0;i<cntt;i++)
{
cout<<a[i];
}
m=cntt;
for(i=0;i<m;i++)
{
if(a[i]>=m)
{
ans=(N-(10*cntt*a[i]))*10+d;
break;
}
cntt--;
}
cout<<ans<<endl;
}
}
Anonymous
I m not getting right o/p
Mihail
we can't read your mind, just so you know
Mihail
an with those very descriptive variable names you'll have to do a lot of explaining
Mihail
let me guess you're using a translator?
Mihail
"K and does not like any other digit, so he decided to change m." this sentence makes 0 sense to me
Mihail
Well you separate and reverse the digits correctly, but I'm not sure what the ans=.... line is meant to do
Anonymous
Any recommend c++ projects for noobs
Anonymous
Hello
MᏫᎻᎯᎷᎷᎬᎠ
BinaryByter
lmfao ma dudes, lets all switch to python
MᏫᎻᎯᎷᎷᎬᎠ
Let's start with "python is greate"
BinaryByter
no, it really is for tasks you gotta do quickly
Anonymous
BinaryByter
it has some really cool paradygms
BinaryByter
but C++ is still my love <3
Francisco
It's like marking functions/variables as static, so the name of those can be use in other compilation units
Nehemiah Aklil
guys can we print out letter in cpp
Nehemiah Aklil
like ppls name
Nehemiah Aklil
for eg printing out my name
Nehemiah
BinaryByter
wat?
Nehemiah Aklil
BinaryByter
std::cout << "hello world\n";
Nehemiah Aklil
Nehemiah Aklil
I want to print out names in nested for loops
BinaryByter
?
Nehemiah Aklil
using asterik ?
BinaryByter
?
Nehemiah Aklil
for (int i=1 ; i<=5 ; i++){
for(int j=1; j<=i ; j++){
std::cout << " * ";
}
std::cout << "\n";
}
Nehemiah Aklil
tyoc213
tyoc213
Im teaching one person programming, and I think this type of programs could help
Nehemiah Aklil
wat
Nehemiah Aklil
this would not work well dude😂
Nehemiah Aklil
Language:
c++
Source:
#include <iostream>
using namespace std;
int main(){
for (int i = 1; i <= 5; i++){
for (int j = 1; j <= i; j++){
cout << " * ";
}
cout << "\n";
}
}
Result:
*
* *
* * *
* * * *
* * * * *
Note:
cplusplus_gcc assumed, other valid options are cplusplus_clang, visual_cplusplus, you can be more specific next time.