- 三角形
- 简弹~
- @ 2023-10-21 17:33:35
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	if(n % 2 == 1)
	{
		cout << (n - 1) / 2;
	}
	else
	{
		cout << n / 2 - 1;
	}
	return 0;
}
0 comments
  
  No comments so far...
            Information
- ID
- 407
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 24
- Accepted
- 10
- Uploaded By
 
       
     
    