結果
問題 | No.3070 Collecting Coins Speedrun 2 |
ユーザー |
👑 ![]() |
提出日時 | 2025-02-05 02:09:19 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 327 bytes |
コンパイル時間 | 540 ms |
コンパイル使用メモリ | 71,520 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-02-09 15:36:37 |
合計ジャッジ時間 | 2,240 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 23 WA * 9 |
ソースコード
#include <iostream>#include <vector>using namespace std;using ll = long long;int main() {int N;cin >> N;vector<int> c(N);for (ll i = 0; i < N; i++) {cin >> c[i];}ll ans = 1;for (int i = 0; i < N - 1; i++) {ans = (ans * 2LL) % 998244353;}cout << ans << endl;}