結果
問題 | No.1299 Random Array Score |
ユーザー |
![]() |
提出日時 | 2021-02-23 00:26:59 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 87 ms / 2,000 ms |
コード長 | 320 bytes |
コンパイル時間 | 2,815 ms |
コンパイル使用メモリ | 139,640 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 19:42:57 |
合計ジャッジ時間 | 7,035 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
ソースコード
#include <iostream>#include <atcoder/all>using namespace std;using namespace atcoder;using ll=long long;using mint=modint998244353;int main(){ll n,k,s=0;cin>>n>>k;for(ll i=0;i<n;i++){ll tmp;cin>>tmp;s+=tmp;}cout<<(mint(2).pow(k)*s).val()<<endl;return 0;}