Submission #407372

# Submission time Handle Problem Language Result Execution time Memory
407372 2021-05-18T19:54:57 Z rainboy Esej (COCI15_esej) C
64 / 80
8 ms 716 KB
#include <stdio.h>

#define A	26

int main() {
	int k, k_;

	scanf("%d%d", &k, &k);
	while (k--) {
		for (k_ = k; k_ > 0; k_ = (k_ - 1) / A)
			printf("%c", (k_ - 1) % A + 'a');
		printf(" ");
	}
	printf("\n");
	return 0;
}

Compilation message

esej.c: In function 'main':
esej.c:8:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    8 |  scanf("%d%d", &k, &k);
      |  ^~~~~~~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 204 KB Output isn't correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 276 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 2 ms 332 KB Output is correct
7 Correct 7 ms 716 KB Output is correct
8 Correct 8 ms 716 KB Output is correct
9 Incorrect 8 ms 716 KB Output isn't correct
10 Correct 8 ms 716 KB Output is correct