제출 #1129689

#제출 시각아이디문제언어결과실행 시간메모리
112968912345678Sob (COCI19_sob)C++20
110 / 110
57 ms7240 KiB
#include <bits/stdc++.h> using namespace std; const int nx=1e6+5; int n, m, x, y, lst, tmp; int main() { cin.tie(NULL)->sync_with_stdio(false); cin>>n>>m; x=n-1, y=m; while (x>=0) { lst=y; while ((x&y)!=x) y++; tmp=y; while (tmp>=lst) cout<<x--<<' '<<tmp--<<'\n'; y++; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...