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<iostream>
using namespace std;
int n, m;
int a[1000][1000];
void read()
{
cin>>n>>m;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=m;j++)
{
cin>>a[i][j];
}
}
}
int main()
{
read();
if(n<=m)
{
cout<<n-1<<endl;
for(int i=2;i<=n;i++)
{
cout<<i<<" "<<1<<" "<<"DESNO"<<endl;
}
}
else
{
cout<<m-1<<endl;
for(int i=2;i<=m;i++)
{
cout<<1<<" "<<i<<" "<<"DOLGE"<<endl;
}
}
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... |