Submission #1023237

#TimeUsernameProblemLanguageResultExecution timeMemory
102323712345678Multiplication (BOI24_multiplication)C++17
100 / 100
1 ms464 KiB
#include <bits/stdc++.h> using namespace std; const int mod=1e9+7; long long n, x, res=1; int main() { cin.tie(NULL)->sync_with_stdio(false); cin>>n; for (int i=1; i<=n; i++) cin>>x, res=(res*(x%mod))%mod; cout<<res; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...