Submission #503312

# Submission time Handle Problem Language Result Execution time Memory
503312 2022-01-07T16:13:37 Z rainboy Ekoeko (COCI21_ekoeko) C
10 / 110
2 ms 460 KB
#include <stdio.h>

#define N	100000

int main() {
	static char cc[N * 2 + 1];
	int n;

	scanf("%d%s", &n, cc);
	printf("%lld\n", (long long) n * n / 4);
	return 0;
}

Compilation message

Main.c: In function 'main':
Main.c:9:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    9 |  scanf("%d%s", &n, cc);
      |  ^~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 332 KB Output is correct
3 Correct 1 ms 396 KB Output is correct
4 Correct 1 ms 460 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 332 KB Output is correct
3 Correct 1 ms 396 KB Output is correct
4 Correct 1 ms 460 KB Output is correct
5 Correct 0 ms 284 KB Output is correct
6 Incorrect 0 ms 204 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 332 KB Output is correct
3 Correct 1 ms 396 KB Output is correct
4 Correct 1 ms 460 KB Output is correct
5 Correct 0 ms 204 KB Output is correct
6 Incorrect 2 ms 452 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Incorrect 0 ms 204 KB Output isn't correct
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 204 KB Output is correct
2 Correct 0 ms 332 KB Output is correct
3 Correct 1 ms 396 KB Output is correct
4 Correct 1 ms 460 KB Output is correct
5 Correct 0 ms 284 KB Output is correct
6 Incorrect 0 ms 204 KB Output isn't correct
7 Halted 0 ms 0 KB -