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",(n-1)/2);
	return 0;
}

相关文章:

  • 2021-08-07
  • 2021-12-01
  • 2021-11-03
  • 2022-02-17
  • 2021-12-11
  • 2021-10-11
  • 2021-09-30
  • 2022-12-23
猜你喜欢
  • 2021-06-03
  • 2021-05-25
  • 2022-12-23
  • 2022-01-08
  • 2021-10-22
  • 2021-10-06
  • 2021-06-30
相关资源
相似解决方案