【推导】Codeforces Round #411 (Div. 1) A. Find Amir

1 2 3 4 5 6 7

4-5-3-6-2-7-1

答案是(n-1)/2

#include<cstdio>
using namespace std;
int n;
int main(){
	scanf("%d",&n);
	printf("%d
",(n-1)/2);
	return 0;
}
原文地址:https://www.cnblogs.com/autsky-jadek/p/6815489.html