QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#128008#1. I/O Testbear0131Compile Error//C++14723b2023-07-20 14:17:092023-07-20 14:17:50

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:17:50]
  • 评测
  • [2023-07-20 14:17:09]
  • 提交

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, a[200200];

int main(){
	freopen("draftpaper.in", "r", stdin);
	freopen("draftpaper.out", "w", stdout);
	ios::sync_with_stdio(false);
	
	cin >> n;

	bool pos = 1, neg = 1;

	rep(i, n){
		cin >> a[i];
		if(a[i] > 0) neg = 0;
		if(a[i] < 0) pos = 0;
	}

	rep(i, n-1)
		a[i+1] += a[i];
	bool pre = 1;
	re...

input_test


output_test


詳細信息

Invalid Configuration File: failed to read Nin and Nout