| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 831751 | Chal1shkan | Sob (COCI19_sob) | C++14 | 61 ms | 7164 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
# include <bits/stdc++.h>
# define pb push_back
# define ff first
# define ss second
# define nl'\n'
# define pii pair <int, int>
# define pll pair <ll, ll>
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
const ll maxn = 2e5 + 25;
const ll maxl = 18 + 0;
const ll inf = 2e9 + 0;
const ll mod = 998244353;
using namespace std;
void ma1n ()
{
int n, m;
cin >> n >> m;
int i = n - 1, j = m;
while (i >= 0)
{
int prev1 = i, prev2 = j;
while (j < n + m)
{
if ((i & j) == i)
{
break;
}
++j;
}
int copy = j, copy1 = i;
while (copy >= prev2)
{
cout << i << ' ' << copy << nl;
--i, --copy;
}
j++;
}
}
int main ()
{
ios::sync_with_stdio(false);
cin.tie(0);
int zxc = 1;
// cin >> zxc;
while (zxc--)
{
ma1n ();
}
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... | ||||
