#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n,k,m;
int main(){
cin>>n;
k=n/2+1;
m=n%k;
cout<<m*k;
return 0;
}
爱学习的小T
最新推荐文章于 2024-10-31 17:28:42 发布
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll n,k,m;
int main(){
cin>>n;
k=n/2+1;
m=n%k;
cout<<m*k;
return 0;
}