Submission #1074069

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

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

int N;

void init(int N_, int M, vector<int> P, vector<int> A_) 
{
  N = N_;
  A = A_;
}

int count_ways(int L, int R) 
{
  L -= N;
  R -= N;

  int sum = 0;
  for (int i = L; i <= R; i++)
  {
    A[i] ^= 1;
    sum += A[i];
  }

  return sum;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB 2nd lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 2nd lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB 2nd lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 414 ms 1112 KB 1st lines differ - on the 1st token, expected: '431985922', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 414 ms 1112 KB 1st lines differ - on the 1st token, expected: '431985922', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 2nd lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB 2nd lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB 2nd lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -