結果

問題 No.2742 Car Flow
ユーザー rlangevinrlangevin
提出日時 2024-04-20 10:57:27
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 125 bytes
コンパイル時間 241 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 95,744 KB
最終ジャッジ日時 2024-04-20 10:57:32
合計ジャッジ時間 5,136 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
95,360 KB
testcase_01 AC 85 ms
95,360 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 83 ms
95,488 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 63 ms
80,896 KB
testcase_13 AC 64 ms
75,648 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 75 ms
95,360 KB
testcase_18 AC 47 ms
59,776 KB
testcase_19 WA -
testcase_20 AC 52 ms
68,096 KB
testcase_21 WA -
testcase_22 AC 69 ms
87,296 KB
testcase_23 AC 80 ms
91,648 KB
testcase_24 AC 59 ms
76,288 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 57 ms
68,736 KB
testcase_28 WA -
testcase_29 AC 46 ms
58,368 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 71 ms
90,752 KB
testcase_33 AC 75 ms
87,424 KB
testcase_34 AC 56 ms
72,576 KB
testcase_35 AC 54 ms
66,432 KB
testcase_36 WA -
testcase_37 AC 56 ms
68,864 KB
testcase_38 AC 75 ms
87,296 KB
testcase_39 WA -
testcase_40 AC 39 ms
51,968 KB
testcase_41 AC 39 ms
51,840 KB
testcase_42 AC 39 ms
51,712 KB
testcase_43 WA -
testcase_44 WA -
testcase_45 AC 39 ms
52,096 KB
testcase_46 WA -
testcase_47 AC 40 ms
51,712 KB
testcase_48 AC 38 ms
51,548 KB
testcase_49 AC 39 ms
51,712 KB
testcase_50 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = list(map(int, input().split()))
cnt = A.count(1)
mod = 998244353
print(cnt * pow(N, mod - 2, mod) % mod)
0