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>
#define f first
#define s second
#define pb push_back
#define INF 1000000000
#define N (long)1e3
using namespace std;
typedef long long ll;
typedef long double ld;
int main()
{
int a,b,c,d;
cin>>a>>b>>c>>d;
if (c==0 && d==0)
{
cout<<0<<" "<<0<<endl;
for (int i=1; i<=a/2; i++) cout<<i<<" "<<0<<endl<<i<<" "<<1<<endl;
cout<<0<<" "<<1<<endl;
for (int i=2; i<=b/2; i++) cout<<0<<" "<<i<<endl<<1<<" "<<i<<endl;
}
}
# | 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... |
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |