Submission #238414

#TimeUsernameProblemLanguageResultExecution timeMemory
238414denica2804Skandi (COCI20_skandi)C++14
0 / 110
6 ms1152 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...