#include<bits/stdc++.h>
using namespace std;
int n,k=1;
int main()
{
cin>>n;
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
cout<<k++<<' ';
}
cout<<endl;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Average condition doesn't hold. |
2 |
Correct |
2 ms |
376 KB |
Output is correct |
3 |
Incorrect |
2 ms |
376 KB |
Average condition doesn't hold. |
4 |
Correct |
2 ms |
256 KB |
Output is correct |
5 |
Incorrect |
2 ms |
256 KB |
Average condition doesn't hold. |
6 |
Incorrect |
2 ms |
256 KB |
Average condition doesn't hold. |
7 |
Incorrect |
2 ms |
376 KB |
Average condition doesn't hold. |
8 |
Incorrect |
3 ms |
376 KB |
Average condition doesn't hold. |
9 |
Incorrect |
3 ms |
376 KB |
Average condition doesn't hold. |
10 |
Incorrect |
3 ms |
376 KB |
Average condition doesn't hold. |