結果

問題 No.2742 Car Flow
ユーザー sk4rdsk4rd
提出日時 2024-04-21 05:45:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 96,000 KB
最終ジャッジ日時 2024-04-21 05:45:11
合計ジャッジ時間 4,863 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
95,616 KB
testcase_01 AC 77 ms
95,616 KB
testcase_02 AC 79 ms
95,616 KB
testcase_03 AC 81 ms
96,000 KB
testcase_04 AC 78 ms
95,616 KB
testcase_05 AC 77 ms
96,000 KB
testcase_06 AC 76 ms
95,616 KB
testcase_07 AC 77 ms
95,616 KB
testcase_08 AC 101 ms
95,616 KB
testcase_09 AC 79 ms
95,488 KB
testcase_10 AC 67 ms
84,096 KB
testcase_11 AC 70 ms
87,424 KB
testcase_12 AC 63 ms
81,152 KB
testcase_13 AC 61 ms
76,416 KB
testcase_14 AC 70 ms
74,368 KB
testcase_15 AC 47 ms
59,904 KB
testcase_16 AC 78 ms
95,616 KB
testcase_17 AC 80 ms
95,104 KB
testcase_18 AC 43 ms
60,032 KB
testcase_19 AC 76 ms
95,360 KB
testcase_20 AC 51 ms
68,096 KB
testcase_21 AC 50 ms
66,816 KB
testcase_22 AC 69 ms
87,552 KB
testcase_23 AC 77 ms
91,520 KB
testcase_24 AC 59 ms
76,288 KB
testcase_25 AC 73 ms
91,008 KB
testcase_26 AC 78 ms
95,744 KB
testcase_27 AC 55 ms
69,376 KB
testcase_28 AC 57 ms
72,576 KB
testcase_29 AC 43 ms
58,624 KB
testcase_30 AC 73 ms
90,752 KB
testcase_31 AC 53 ms
65,664 KB
testcase_32 AC 73 ms
91,392 KB
testcase_33 AC 70 ms
87,808 KB
testcase_34 AC 56 ms
72,704 KB
testcase_35 AC 49 ms
66,816 KB
testcase_36 AC 42 ms
58,496 KB
testcase_37 AC 53 ms
69,120 KB
testcase_38 AC 72 ms
87,424 KB
testcase_39 AC 50 ms
62,592 KB
testcase_40 AC 41 ms
51,584 KB
testcase_41 AC 39 ms
51,584 KB
testcase_42 AC 38 ms
51,712 KB
testcase_43 AC 39 ms
51,712 KB
testcase_44 AC 37 ms
51,456 KB
testcase_45 AC 38 ms
51,840 KB
testcase_46 AC 38 ms
51,584 KB
testcase_47 AC 37 ms
51,456 KB
testcase_48 AC 38 ms
51,456 KB
testcase_49 AC 38 ms
51,328 KB
testcase_50 AC 41 ms
51,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

MOD = 998244353
n = int(input())
a = list(map(int, input().split()))
p = min(sum(a), n-sum(a)) % MOD
print((p * pow(n, -1, MOD)) % MOD)
0