結果
| 問題 |
No.3070 Collecting Coins Speedrun 2
|
| コンテスト | |
| ユーザー |
ID 21712
|
| 提出日時 | 2025-03-22 00:21:01 |
| 言語 | Go (1.23.4) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 274 bytes |
| コンパイル時間 | 11,776 ms |
| コンパイル使用メモリ | 244,784 KB |
| 実行使用メモリ | 7,968 KB |
| 最終ジャッジ日時 | 2025-03-22 00:21:25 |
| 合計ジャッジ時間 | 23,197 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | AC * 1 WA * 31 |
ソースコード
package main
import . "fmt"
func main() {
var n int
Scan(&n)
const M=998244353
x,y,c,d:=1,0,1,0
for ;n>0;n-- {
var a int
Scan(&a)
if a<0 {
if y>0 {
x=(x*y)%M
}
y++
} else if a>0 {
if d> 0 {
c=(c*d)%M
}
d++
}
}
Println(x*c%M*2%M)
}
ID 21712