QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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";
}
}
Details
Tip: Click on the bar to expand more detailed information
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.