fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. //
  7. int p = 2 , q = 10, r = 4;
  8. for(int i=5;i<=6;i++){
  9. p = 10+p;
  10. if((q+8) < (8+q) || 5 < p){
  11. p = i+i;
  12. q = 11+p;
  13. }
  14. }
  15. // for(int i=5;i<=8;i++){
  16. // p = (i^p) + q;
  17. // q = (7+3) + i;
  18. // }
  19. cout << p+q ;
  20. return 0;
  21. }
Success #stdin #stdout 0s 5548KB
stdin
Standard input is empty
stdout
35