1389E.cpp 238 B

123456789101112131415
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int n;
  5. cin >> n;
  6. if(n % 2 == 1) {
  7. n = (n + 1) / 2;
  8. cout << n*n << endl;
  9. } else {
  10. n /= 2;
  11. cout << n*n << endl;
  12. }
  13. return 0;
  14. }