QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#864483 | #1. I/O Test | little_one | Compile Error | / | / | C++14 | 949b | 2025-01-20 17:20:03 | 2025-01-20 17:20:05 |
Judging History
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
Details
Invalid Configuration File: failed to read Nin and Nout