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. string arr[101];
  12. for(int i=0;i<n;i++){
  13. int a, b, c, d;
  14. cin >>a>>b>>c>>d;
  15. if (a==b && b==c && c==a)
  16. arr[i] = "YES";
  17. else
  18. arr[i]="NO";
  19. }
  20. for(int i=0; i<n; i++){
  21. cout<< arr[i]<<endl;
  22. }
  23. }
  24.  
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
Standard output is empty