Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int a,b,c,s1,s2,s3,z1,z2,a1;
- cin>>a;
- while(a>0){
- z1=0;
- z2=0;
- cin>>c>>b;
- s2=b;
- for(int i=1;z1==0 || z2==0;i++){
- a1=i;
- if(z1==0){
- if(0a1==b){
- z1=1;
- s1=i;
- }
- if(0xa1==b){
- z2=1;
- s3=i;
- }
- }
- }
- cout<<c<<" "<<s1<<" "<<s2<<" "<<s3<<endl;
- a-=1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment