Submission #407373

# Submission time Handle Problem Language Result Execution time Memory
407373 2021-05-18T19:56:24 Z rainboy Esej (COCI15_esej) C
80 / 80
9 ms 716 KB
#include <stdio.h>

#define A	26

int main() {
	int k, k_;

	scanf("%d%d", &k, &k);
	while (k--) {
		for (k_ = k + 1; 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 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 1 ms 204 KB Output is correct
6 Correct 2 ms 332 KB Output is correct
7 Correct 8 ms 716 KB Output is correct
8 Correct 7 ms 716 KB Output is correct
9 Correct 9 ms 716 KB Output is correct
10 Correct 7 ms 716 KB Output is correct