QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#864483#1. I/O Testlittle_oneCompile Error//C++14949b2025-01-20 17:20:032025-01-20 17:20:05

Judging History

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

  • [2025-01-20 17:20:05]
  • 评测
  • [2025-01-20 17:20:03]
  • 提交

config.txt

#include <cstdio>
#include <queue>
#include <vector>
#include <utility>
using namespace std;
int n,p[1000005],to[1000005],cnt;
char s[1000005],t[1000005];
priority_queue < int,vector <int>,greater <int> > q;
int main(){
    scanf("%d",&n);
    for(int i = 1;i <= n;i++){
        scanf("%d",&p[i]);
        to[p[i]] = i;
    }
    for(int i = 1;i <= n;i += 2){
        if(i > 1){
            q.push(to[i - 1]);
        }
        q.push(to[i]);
        int tmp = q.top();
        q....

input_test


output_test


详细

Invalid Configuration File: failed to read Nin and Nout