QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#608994 | #9415. Matrix | UESTC_DebugSimulator# | WA | 0ms | 3636kb | C++17 | 396b | 2024-10-04 10:08:55 | 2024-10-04 10:08:56 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
int n;
int a[100][100];
signed main()
{
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cin>>n;
cout<<"Yes\n";
a[1][1]=1;a[1][2]=2;a[2][1]=3;a[2][2]=4;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n;j++)
{
if(a[i][j]==0) cout<<"1 ";
else cout<<a[i][j]<<" ";
}
cout<<"\n";
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3560kb
input:
2
output:
Yes 1 2 3 4
result:
ok Correct. (1 test case)
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3636kb
input:
3
output:
Yes 1 2 1 3 4 1 1 1 1
result:
wrong answer Integer 5 didn't appear. (test case 1)