| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1257126 | rpthirster | Sob (COCI19_sob) | C++20 | 337 ms | 7296 KiB |
#include <bits/stdc++.h>
using namespace std;
#define fio() ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define lo long long
#define fi first
#define se second
lo n,m,a;
bool used[1000005];
int main()
{
fio();
cin >> n >> m;
a = m;
for(int i=n-1; i>=0; i--){
while((i & a) != i){
//cout << i << " " << a << endl;
a++;
}
cout << i << " " << a << endl;
int temp = a+1;
while((a != m) && (i != 0)){
cout << --i << " " << --a << endl;
}
a = temp;
m = temp;
}
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... | ||||
