fork(1) download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x, a, b;
  6. cin >> x >> a >> b;
  7.  
  8. // 1.の出力
  9. x++;
  10. cout << x << endl;
  11.  
  12. x *= a + b;
  13. cout << x << endl;
  14.  
  15. x = x * x;
  16. cout << x << endl;
  17.  
  18. x--;
  19. cout << x << endl;
  20. }
  21.  
Success #stdin #stdout 0s 5320KB
stdin
1 2 3
stdout
2
10
100
99