#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 |
1 |
Incorrect |
5 ms |
384 KB |
First line is not correct. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
1152 KB |
First line is not correct. |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
First line is not correct. |
2 |
Halted |
0 ms |
0 KB |
- |