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>
using namespace std;
#define ll long long
int const N=2e5+5;
int const mod=1e9+7;
void solve1(int h,int v){
h/=2;
v/=2;
cout<<0<<' '<<0<<endl;
for(int x=1;x<=h;x++)
cout<<x<<' '<<0<<endl;
for(int x=h;x>=1;x--)
cout<<x<<' '<<1<<endl;
for(int y=2;y<=v;y++)
cout<<1<<' '<<y<<endl;
for(int y=v;y>=1;y--)
cout<<0<<' '<<y<<endl;
}
int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
if(c==0 && d==0)
solve1(a,b);
// else if(a==0 && b==0)
// solve2(c,d);
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... |
# | 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... |