# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
382427 |
2021-03-27T10:18:27 Z |
VEGAnn |
Hop (COCI21_hop) |
C++14 |
|
1000 ms |
364 KB |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1010;
int n;
ll x[N], mx[N];
int main(){
ios_base::sync_with_stdio(0); cin.tie(0);
#ifdef _LOCAL
freopen("in.txt","r",stdin);
#endif // _LOCAL
cin >> n;
for (int i = 0; i < n; i++)
cin >> x[i];
for (int i = 0; i < n; i++){
mx[i] = 0;
while ((1 << (mx[i] + 1)) <= x[i])
mx[i]++;
for (int j = 0; j < i; j++){
if (mx[i] / 4 == mx[j] / 4)
cout << "1 "; else
if (mx[i] / 16 == mx[j] / 16)
cout << "2 ";
else cout << "3 ";
}
cout << '\n';
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Execution timed out |
1088 ms |
364 KB |
Time limit exceeded |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
364 KB |
Output is correct |
2 |
Execution timed out |
1088 ms |
364 KB |
Time limit exceeded |
3 |
Halted |
0 ms |
0 KB |
- |