fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int t,x,y,z;
  7. cin>>t;
  8. while(t--){
  9. cin>>x>>y>>z;
  10. if((x >= y && x >= z) || (x >= y && x <= z))
  11. cout<<"PIZZA\n";
  12. else if(x >= z && x <= y)
  13. cout<<"BURGER\n";
  14. else
  15. cout<<"NOTHING\n";
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5392KB
stdin
3
50 40 60
40 55 39
30 42 37
stdout
PIZZA
BURGER
NOTHING