Submission #991251

#TimeUsernameProblemLanguageResultExecution timeMemory
991251VMaksimoski008Multiplication (BOI24_multiplication)C++17
100 / 100
1 ms444 KiB
#include <iostream> int main() { int n, m = 1e9 + 7; std::cin >> n; long long ans = 1; for(int i=1; i<=n; i++) { long long x; std::cin >> x; ans = (ans * (x % m)) % m; } std::cout << ans << '\n'; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...