c++ simple solution
\nclass Solution {\npublic:\n    int minOperations(int n) {\n        int m=(n%2)? n+1: n;\n        int res=0;\n        for(int i=0; i<n/2; ++i){\n            re
```\nclass Solution {\npublic:\n    int minOperations(int n) {\n        int m=(n%2)? n+1: n;\n        int res=0;\n        for(int i=0; i<n/2; ++i){\n            res+=(m-2*i-1);\n        }\n        \n        return res;\n    }\n};\n```
[]