Saleh127

cf 1385A

Jul 18th, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define fellow_junior ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. int main()
  7. {
  8. fellow_junior
  9.  
  10. test
  11. {
  12. ll a,c,d,e,f,i,j,k,l;
  13. cin>>a>>c>>d;
  14. if(c==d && c>=a)
  15. {
  16. cout<<"YES"<<endl;
  17. cout<<a<<" "<<a<<" "<<d<<endl;
  18. }
  19. else if(a==c && a>=d)
  20. {
  21. cout<<"YES"<<endl;
  22. cout<<a<<" "<<d<<" "<<d<<endl;
  23. }
  24. else if(a==d && a>=c)
  25. {
  26. cout<<"YES"<<endl;
  27. cout<<c<<" "<<a<<" "<<c<<endl;
  28. }
  29. else cout<<"NO"<<endl;
  30. }
  31.  
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment