fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int n;
  10. cin >>n;
  11. while(n--){
  12. int a, b, c, d;
  13. cin >>a>>b>>c>>d;
  14. if (a==b && b==c && c==a)
  15. cout<<"YES"<<endl;
  16. else
  17. cout<< "NO"<<endl;
  18. }
  19. }
  20.  
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
Standard output is empty