結果

問題 No.2742 Car Flow
ユーザー kenken714kenken714
提出日時 2024-04-13 18:06:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 103,648 KB
最終ジャッジ日時 2024-04-20 09:30:20
合計ジャッジ時間 4,295 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
102,564 KB
testcase_01 AC 73 ms
103,372 KB
testcase_02 AC 73 ms
103,480 KB
testcase_03 AC 73 ms
103,392 KB
testcase_04 AC 76 ms
103,416 KB
testcase_05 AC 77 ms
103,388 KB
testcase_06 AC 72 ms
102,940 KB
testcase_07 AC 73 ms
103,340 KB
testcase_08 AC 74 ms
102,828 KB
testcase_09 AC 73 ms
102,824 KB
testcase_10 AC 64 ms
90,360 KB
testcase_11 AC 65 ms
93,832 KB
testcase_12 AC 61 ms
86,372 KB
testcase_13 AC 56 ms
79,512 KB
testcase_14 AC 53 ms
78,568 KB
testcase_15 AC 37 ms
60,544 KB
testcase_16 AC 71 ms
102,608 KB
testcase_17 AC 74 ms
103,648 KB
testcase_18 AC 36 ms
60,684 KB
testcase_19 AC 72 ms
102,792 KB
testcase_20 AC 49 ms
71,560 KB
testcase_21 AC 46 ms
68,004 KB
testcase_22 AC 64 ms
94,624 KB
testcase_23 AC 67 ms
98,760 KB
testcase_24 AC 53 ms
80,744 KB
testcase_25 AC 72 ms
98,516 KB
testcase_26 AC 72 ms
102,696 KB
testcase_27 AC 46 ms
72,032 KB
testcase_28 AC 48 ms
76,380 KB
testcase_29 AC 36 ms
59,672 KB
testcase_30 AC 67 ms
97,196 KB
testcase_31 AC 45 ms
67,528 KB
testcase_32 AC 68 ms
97,276 KB
testcase_33 AC 64 ms
93,972 KB
testcase_34 AC 49 ms
76,516 KB
testcase_35 AC 45 ms
68,924 KB
testcase_36 AC 37 ms
59,512 KB
testcase_37 AC 47 ms
71,364 KB
testcase_38 AC 66 ms
93,284 KB
testcase_39 AC 42 ms
64,768 KB
testcase_40 AC 33 ms
52,452 KB
testcase_41 AC 33 ms
51,828 KB
testcase_42 AC 31 ms
52,420 KB
testcase_43 AC 32 ms
52,560 KB
testcase_44 AC 31 ms
52,408 KB
testcase_45 AC 33 ms
52,580 KB
testcase_46 AC 32 ms
52,624 KB
testcase_47 AC 32 ms
51,824 KB
testcase_48 AC 32 ms
53,228 KB
testcase_49 AC 33 ms
52,208 KB
testcase_50 AC 32 ms
52,644 KB
権限があれば一括ダウンロードができます

ソースコード

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