QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#577492 | #9308. World Cup | FakeDuck | Compile Error | / | / | C++20 | 725b | 2024-09-20 11:51:33 | 2024-09-20 11:51:33 |
Judging History
answer
#include <bits/stdc++.h>
using ll = long long;
void solve()
{
std::vector<int> a(32);
int cnt = 0;
for (int i = 0; i < 32; i++)
{
std::cin >> a[i];
cnt += a[i] < a[0];
}
if (cnt <= 31)
std::cout << 1 << '\n';
else if (cnt >= 27)
std::cout << 2 << '\n';
else if (cnt >= 13)
std::cout << 4 << '\n';
else if (cnt >= 6)
std::cout << 8 << '\n';
else if (cnt >= 2)
std::cout << 16 << '\n';
else
std::cout << 32 << '\n';
}
int mian()
{
std::ios::sync_with_stdio(0);
std::cin.tie(0);
int t;
std::cin >> t;
while (t--)
{
solve();
}
return 0;
}
Details
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x24): undefined reference to `main' collect2: error: ld returned 1 exit status