fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b,c;
  6. cin >> a >> b >> c;
  7. bool f = (a<35) || (b<35) || (c<35) || (a+b+c<120);
  8. if(f) cout << "FAIL\n";
  9. else cout << "PASS\n";
  10. }
  11.  
Success #stdin #stdout 0s 544KB
stdin
Standard input is empty
stdout
FAIL