QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#769823 | #6652. 着色 | ANIG# | WA | 0ms | 3688kb | C++14 | 244b | 2024-11-21 19:31:21 | 2024-11-21 19:31:21 |
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)%10;
}
cout<<"\n";
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3556kb
input:
2
output:
3
result:
ok Accepted.
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3688kb
input:
1000
output:
-1
result:
wrong answer There is an answer, but you do not provide one.