mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 08:18:49 +00:00
23 lines
369 B
C++
23 lines
369 B
C++
#include "coin.h"
|
|
|
|
using std::cin;
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
int n, c[105], ans;
|
|
|
|
int main() {
|
|
n = getn();
|
|
for (int i = 1; i <= n; i++) {
|
|
for (int j = 1; j <= 1000; j++) {
|
|
c[i] += !!query(i);
|
|
}
|
|
}
|
|
ans = 1;
|
|
for (int i = 2; i <= n; i++) {
|
|
if (c[i] <= c[ans]) ans = i;
|
|
}
|
|
submit(ans);
|
|
return 0;
|
|
}
|