제출 #1345218

#제출 시각아이디문제언어결과실행 시간메모리
1345218ZicrusMultiplication (BOI24_multiplication)C++20
100 / 100
0 ms344 KiB
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
typedef vector<int> vi;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define all(x) x.begin(), x.end()
#define sz(x) (ll)(x).size()
constexpr ll inf = 4e18;
mt19937 mt(time(0));

const ll mod = 1000000007;

void solve() {
    ll n; cin >> n;
    ll res = 1;
    while (n--) {
        ll v; cin >> v;
        (res *= v % mod) %= mod;
    }
    cout << res << '\n';
}

int main() {
    ios::sync_with_stdio(0); cin.tie(0);
    solve();
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...