# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1229807 | nhnguyen14 | Sob (COCI19_sob) | C++20 | 1 ms | 328 KiB |
#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
const int MAXLOG=20;
int n,m;
namespace subtask1{
bool check(){
int mask=n+m;
if (__builtin_popcount(mask)!=1) return false;
return true;
}
void main_code(){
for(int i=0,lim=m;i<n;++i,++lim){
cout<<i<<' '<<lim;
}
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0) ; cout.tie(0);
#define task "main"
if (fopen(task".inp","r")){
freopen(task".inp","r",stdin);
// freopen(task".out","w",stdout);
}
cin>>n>>m;
if (subtask1::check()) return subtask1::main_code(),0;
assert(false);
return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |