# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
452084 |
2021-08-03T18:27:25 Z |
dxz05 |
Bomb (IZhO17_bomb) |
C++14 |
|
2 ms |
460 KB |
#pragma GCC optimize("Ofast,O2,O3")
#pragma GCC target("avx2")
#include <bits/stdc++.h>
using namespace std;
void debug_out() { cerr << endl; }
template<typename Head, typename... Tail>
void debug_out(Head H, Tail... T) {
cerr << "[" << H << "]";
debug_out(T...);
}
#ifdef dddxxz
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define debug(...) 42
#endif
#define SZ(s) ((int)s.size())
#define all(x) (x).begin(), (x).end()
#define revall(x) (x).rbegin(), (x).rend()
clock_t startTime;
double getCurrentTime() {
return (double) (clock() - startTime) / CLOCKS_PER_SEC;
}
#define MP make_pair
typedef long long ll;
mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());
const double eps = 0.00001;
const int MOD = 1e9;
const int INF = 1000000101;
const long long LLINF = 1223372000000000555;
const int N = 2e6 + 3e2;
const int M = 2522;
char a[M][M];
void solve(int TC) {
int n, m;
cin >> n >> m;
if (n > m) swap(n, m);
int logm = log2(m);
assert(n * n * m * logm <= 2e8);
cout << -1 << endl;
}
int main() {
startTime = clock();
cin.tie(nullptr);
cout.tie(nullptr);
ios_base::sync_with_stdio(false);
bool llololcal = false;
#ifdef dddxxz
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
llololcal = true;
#endif
int TC = 1;
//cin >> TC;
for (int test = 1; test <= TC; test++) {
debug(test);
//cout << "Case #" << test << ": ";
solve(test);
}
if (llololcal) cerr << endl << "Time: " << int(getCurrentTime() * 1000) << " ms" << endl;
return 0;
}
Compilation message
bomb.cpp: In function 'int main()':
bomb.cpp:19:20: warning: statement has no effect [-Wunused-value]
19 | #define debug(...) 42
| ^~
bomb.cpp:75:9: note: in expansion of macro 'debug'
75 | debug(test);
| ^~~~~
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
2 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
328 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
328 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
12 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
15 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
16 |
Incorrect |
1 ms |
320 KB |
Output isn't correct |
17 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
18 |
Incorrect |
1 ms |
324 KB |
Output isn't correct |
19 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
20 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
21 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
22 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
23 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
24 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
25 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
26 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
27 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
28 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
29 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
30 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
31 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
32 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
33 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
34 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
35 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
36 |
Runtime error |
2 ms |
460 KB |
Execution killed with signal 6 |
37 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
38 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
39 |
Incorrect |
1 ms |
204 KB |
Output isn't correct |
40 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
41 |
Incorrect |
0 ms |
204 KB |
Output isn't correct |
42 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
43 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
44 |
Runtime error |
1 ms |
460 KB |
Execution killed with signal 6 |
45 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
46 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
47 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
48 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
49 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
50 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
51 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
52 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
53 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
54 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
55 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
56 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
57 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
58 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
59 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
60 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
61 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
62 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
63 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
64 |
Incorrect |
1 ms |
336 KB |
Output isn't correct |
65 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
66 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
67 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
68 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
69 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
70 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
71 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
72 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
73 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
74 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
75 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
76 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
77 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
78 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
79 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
80 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
81 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
82 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
83 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
84 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
85 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
86 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
87 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
88 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
89 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
90 |
Incorrect |
0 ms |
332 KB |
Output isn't correct |
91 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
92 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
93 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
94 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
95 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
96 |
Incorrect |
1 ms |
340 KB |
Output isn't correct |
97 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
98 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
99 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |
100 |
Incorrect |
1 ms |
332 KB |
Output isn't correct |