Submission #1042367

# Submission time Handle Problem Language Result Execution time Memory
1042367 2024-08-03T02:53:29 Z Alihan_8 Digital Circuit (IOI22_circuit) C++17
0 / 100
363 ms 1112 KB
#include "circuit.h"

#include <vector>

#include <bits/stdc++.h>

using namespace std;

const int Mod = 1000002022;

vector <int> a;

int n, m;

void init(int N, int M, std::vector<int> P, std::vector<int> A) {
	a = A, n = N, m = M;
}

int count_ways(int L, int R) {
	int cnt = 0;
	
	for ( int i = L - n; i <= R - n; i++ ){
		a[i] ^= 1;
		
		cnt += a[i];
	}
	
	return cnt;
}
# 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 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 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 363 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 363 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 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 0 ms 344 KB 2nd lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -