fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. long long p,x;
  6.  
  7. int main(){
  8. // freopen("input.txt", "r", stdin);
  9. // freopen("output.txt", "w", stdout);
  10.  
  11. cin >> p;
  12.  
  13.  
  14. x=(p+1)/2;
  15.  
  16.  
  17.  
  18. cout << x*x;
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 544KB
stdin
3
stdout
4