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

xiaoxiao2021-02-27  260

可以贪心地在两边走,每次只花 1 的代价或者不花。举几个例子手算一下可以发现答案是n12

#include<cstdio> int main() { int n; scanf("%d",&n); printf("%d\n",(n-1)/2); }
转载请注明原文地址: https://www.6miu.com/read-10849.html

最新回复(0)