0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 07:31:58 +00:00
OI-codes/Hydro/system_test/1/1.cpp

23 lines
369 B
C++
Raw Normal View History

#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;
}