Submission #1074049

# Submission time Handle Problem Language Result Execution time Memory
1074049 2024-08-25T07:17:00 Z fv3 Digital Circuit (IOI22_circuit) C++17
0 / 100
12 ms 2392 KB
#include "circuit.h"
#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
vector<int> ps;

int N;

void init(int N_, int M, vector<int> P, vector<int> A) 
{
  N = N_;
  ps = vector<int>(M + 1);
  for (int i = 0; i < N + M; i++)
    ps[i+1] = ps[i] + A[i];
}

int count_ways(int L, int R) 
{
  L -= N;
  R -= N;
  return ps[R+1] - ps[L];
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 12 ms 2392 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 12 ms 2392 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '1', found: '0'
2 Halted 0 ms 0 KB -