Submission #407373

#TimeUsernameProblemLanguageResultExecution timeMemory
407373rainboyEsej (COCI15_esej)C11
80 / 80
9 ms716 KiB
#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 (stderr)

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 timeMemoryGrader output
Fetching results...