結果
| 問題 | No.3070 Collecting Coins Speedrun 2 |
| コンテスト | |
| ユーザー |
nikoro256
|
| 提出日時 | 2025-03-21 22:10:10 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 312 bytes |
| 記録 | |
| コンパイル時間 | 231 ms |
| コンパイル使用メモリ | 96,352 KB |
| 実行使用メモリ | 98,064 KB |
| 最終ジャッジ日時 | 2026-07-07 15:08:19 |
| 合計ジャッジ時間 | 4,064 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 7 |
ソースコード
N=int(input())
C=list(map(int,input().split()))
if N==1:
print(1)
exit()
ans=1
if min(C)<0<max(C):
ans*=2
zero_count =0
if 0 in C:
if min(C)<0<max(C):
if 0 in C:
zero_count+=1
ans*=3
else:
ans*=2
p=998244353
ans*=pow(2,max(0,N-2-zero_count),p)
print(ans%p)
nikoro256