Submission #1013544

#TimeUsernameProblemLanguageResultExecution timeMemory
1013544rainboyMultiplication (BOI24_multiplication)C11
100 / 100
1 ms600 KiB
#include <stdio.h> #define MD 1000000007 int main() { int n, x; scanf("%d", &n); x = 1; while (n--) { long long a; scanf("%lld", &a); x = x * (a % MD) % MD; } printf("%d\n", x); return 0; }

Compilation message (stderr)

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