Submission #826346

#TimeUsernameProblemLanguageResultExecution timeMemory
826346rainboyFootball (info1cup20_football)C11
26 / 100
29 ms1992 KiB
#include <stdio.h>

int main() {
	int t;

	scanf("%d", &t);
	while (t--) {
		int n, k, a, sum;

		scanf("%d%d", &n, &k);
		sum = 0;
		while (n--) {
			scanf("%d", &a);
			sum = (sum + a) % 2;
		}
		printf("%d", sum % 2);
	}
	printf("\n");
	return 0;
}

Compilation message (stderr)

football.c: In function 'main':
football.c:6:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    6 |  scanf("%d", &t);
      |  ^~~~~~~~~~~~~~~
football.c:10:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |   scanf("%d%d", &n, &k);
      |   ^~~~~~~~~~~~~~~~~~~~~
football.c:13:4: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   13 |    scanf("%d", &a);
      |    ^~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...