51022023-04-16 23:01:09tomi7Táblajáték 2 (70 pont)cpp11Wrong answer 19/703ms4324 KiB
// Source: https://usaco.guide/general/io

#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin>>n;
	vector<int> a(n);
	int valasz=0;
	for(int i=0;i<n;i++){
		cin>>a[i];
		if(a[i]==0 || a[i]==1 || a[i]==2){
			valasz++;
		}else if(a[i]==3){
			valasz--;
		}
	}
	cout<<valasz<<'\n'<<20<<'\n';
}
SubtaskSumTestVerdictTimeMemory
base19/70
1Wrong answer0/03ms1680 KiB
2Wrong answer0/03ms1924 KiB
3Partially correct1/22ms2064 KiB
4Partially correct1/33ms2268 KiB
5Partially correct1/33ms2520 KiB
6Partially correct1/32ms2732 KiB
7Partially correct1/33ms2944 KiB
8Wrong answer0/33ms2988 KiB
9Partially correct1/33ms2988 KiB
10Partially correct1/33ms3240 KiB
11Partially correct1/32ms3208 KiB
12Partially correct1/33ms3444 KiB
13Partially correct1/32ms3448 KiB
14Partially correct1/33ms3696 KiB
15Partially correct1/43ms3772 KiB
16Partially correct1/42ms3748 KiB
17Partially correct1/43ms3988 KiB
18Partially correct1/43ms4200 KiB
19Partially correct1/42ms4284 KiB
20Partially correct1/42ms4292 KiB
21Partially correct1/43ms4168 KiB
22Partially correct1/43ms4168 KiB
23Wrong answer0/33ms4324 KiB