Skip to content

Commit ef74dc7

Browse files
authored
Create Nastia and Nearly Good Numbers.cpp
1 parent 7a8487b commit ef74dc7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
int main(){
4+
int t;cin>>t;
5+
while(t--){
6+
long long a,b;cin>>a>>b;
7+
if(b==1)cout<<"NO\n";
8+
else{
9+
cout<<"YES\n";
10+
cout<<a<<" "<<a*b<<" "<<a*(b+1)<<"\n";
11+
}
12+
}
13+
return 0;
14+
}

0 commit comments

Comments
 (0)