結果
| 問題 |
No.2275 →↑↓
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-04-21 21:23:12 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 28 ms / 2,000 ms |
| コード長 | 329 bytes |
| コンパイル時間 | 739 ms |
| コンパイル使用メモリ | 66,048 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-06 14:49:10 |
| 合計ジャッジ時間 | 1,797 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
#include<iostream>
#include<atcoder/modint>
using namespace std;
using mint=atcoder::modint998244353;
int N;
int A[2<<17];
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
cin>>N;
for(int i=0;i<N;i++)cin>>A[i];
mint ans=1;
for(int i=1;i<N;i++)
{
int a=min(A[i-1],A[i]);
ans*=a;
}
cout<<ans.val()<<endl;
}