| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 442804 | jesus_coconut | Sob (COCI19_sob) | C++17 | 99 ms | 7192 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int mn;
int match(int a, int b) {
while (a >= 0 && b >= mn) {
cout << a << ' ' << b << '\n';
--a; --b;
}
return a;
}
void solve() {
int n, m;
cin >> n >> m;
mn = m;
for (int i = n - 1; i >= 0;) {
for (int j = m; j < m + n; ++j) {
if ((i & j) == i) {
i = match(i, j);
mn = j + 1;
}
}
}
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
solve();
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
