QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#128005#1. I/O Testbear0131Compile Error//C++141.1kb2023-07-20 14:16:532023-07-20 14:16:56

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-20 14:16:56]
  • 评测
  • [2023-07-20 14:16:53]
  • 提交

config.txt

#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; ++i)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> pii;

int n, done[111]; ll a[111];

vector<pii> ans;

int cn;
bool dfs(int lvl){
	//cout << "dfs " << lvl << endl;
	if(lvl >= n-1){
		return 1;
	}
	int tcn = cn;
	rep(i, tcn) rep(j, i){
		if(!done[i] && !done[j] && a[i] % 2 == a[j] % 2){
			ans.emplace_back(i, j);
			done[i] = done[j] = 1;
			a[cn++] = (a[i] + a[j]) /...

input_test


output_test


Details

Invalid Configuration File: failed to read Nin and Nout