Submission #992082

#TimeUsernameProblemLanguageResultExecution timeMemory
992082amin_2008Multiplication (BOI24_multiplication)C++17
99 / 100
1 ms348 KiB
#include "bits/stdc++.h" using namespace std; #define int long long const int sz = 2e5 + 5; const int inf = 1e18; const int mod = 1e9 + 7; int a[sz]; void solve() { int n; cin >> n; int res = 1; for(int i = 1; i <= n; i++) cin >> a[i], res = (res * a[i]) % mod; cout << res << endl; } signed main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); int t = 1; // cin >> t; for(int i = 1; i <= t; i++) solve(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...