Submission #392820

#TimeUsernameProblemLanguageResultExecution timeMemory
392820rainboyUtrka (COCI14_utrka)C11
80 / 80
30 ms2508 KiB
#include <stdio.h> #include <string.h> int main() { static char cc[32]; int n; scanf("%d", &n), n = n * 2 - 1; while (n--) { static char aa[32]; int l, h; scanf("%s", aa), l = strlen(aa); for (h = 0; h < l; h++) cc[h] ^= aa[h]; } printf("%s\n", cc); return 0; }

Compilation message (stderr)

utrka.c: In function 'main':
utrka.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d", &n), n = n * 2 - 1;
      |  ^~~~~~~~~~~~~~~
utrka.c:13:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   13 |   scanf("%s", aa), l = strlen(aa);
      |   ^~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...