QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#263593 | #6189. Full Clue Problem | Crysfly | AC ✓ | 0ms | 3660kb | C++17 | 322b | 2023-11-24 23:18:50 | 2023-11-24 23:18:51 |
Judging History
answer
#include<iostream>
#define L(i,b) for(int i=1;i<=b;++i)
using namespace std;
int main(){
int n;cin>>n;
L(i,n)L(j,n)cout<<(abs(i-j)<2?((i==j&&(i==1||i==n))+2):(abs(i-j)==2))<<" \n"[j==n];
L(i,n)L(j,n)cout<<(i==j?1:(abs(i-j)==1?i%2:0))<<" \n"[j==n];
L(i,n)L(j,n)cout<<(i==j?1:(abs(i-j)==1?j%2:0))<<" \n"[j==n];
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3628kb
input:
5
output:
3 2 1 0 0 2 2 2 1 0 1 2 2 2 1 0 1 2 2 2 0 0 1 2 3 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 1 1 1 0 0 0 0 1 0 0 0 0 1 1 1 0 0 0 0 1
result:
ok ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
2
output:
3 2 2 3 1 1 0 1 1 0 1 1
result:
ok ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
3
output:
3 2 1 2 2 2 1 2 3 1 1 0 0 1 0 0 1 1 1 0 0 1 1 1 0 0 1
result:
ok ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
4
output:
3 2 1 0 2 2 2 1 1 2 2 2 0 1 2 3 1 1 0 0 0 1 0 0 0 1 1 1 0 0 0 1 1 0 0 0 1 1 1 0 0 0 1 0 0 0 1 1
result:
ok ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
10
output:
3 2 1 0 0 0 0 0 0 0 2 2 2 1 0 0 0 0 0 0 1 2 2 2 1 0 0 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