結果

問題 No.2742 Car Flow
ユーザー kenken714
提出日時 2024-04-13 18:06:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,012 KB
実行使用メモリ 104,996 KB
最終ジャッジ日時 2024-10-12 04:55:53
合計ジャッジ時間 4,493 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

m=998244353
n,*c=map(int,open(0).read().split())
c=sum(c)
print(min(c,n-c)*pow(n,m-2,m)%m)
0