题目链接:
https://www.luogu.com.cn/problem/P1372
思路:
假设默契值为,那么根据贪心的想法,这个人的序号为:;
根据题意我们知道,即;
代码:
#include<bits/stdc++.h>
using namespace std;
int main() {
#ifdef MyTest
freopen("Sakura.txt", "r", stdin);
#endif
int n, k;
cin >> n >> k;
cout << n / k;
return 0;
}