QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#769817 | #6652. 着色 | ANIG# | WA | 1ms | 3648kb | C++14 | 243b | 2024-11-21 19:30:13 | 2024-11-21 19:30:14 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
int n;
signed main(){
cin>>n;
if(n>20){
cout<<-1;
return 0;
}
for(int i=1;i<n;i++){
for(int j=i+1;j<=n;j++){
cout<<(i+j)%n;
}
cout<<"\n";
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3648kb
input:
2
output:
1
result:
ok Accepted.
Test #2:
score: -100
Wrong Answer
time: 1ms
memory: 3572kb
input:
1000
output:
-1
result:
wrong answer There is an answer, but you do not provide one.