This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |