QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#769817#6652. 着色ANIG#WA 1ms3648kbC++14243b2024-11-21 19:30:132024-11-21 19:30:14

Judging History

你现在查看的是最新测评结果

  • [2024-11-21 19:30:14]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3648kb
  • [2024-11-21 19:30:13]
  • 提交

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.