結果

問題 No.933 おまわりさんこいつです
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2022-04-21 23:45:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 93,628 KB
最終ジャッジ日時 2023-09-05 06:13:40
合計ジャッジ時間 4,026 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,896 KB
testcase_01 AC 74 ms
70,892 KB
testcase_02 AC 74 ms
71,060 KB
testcase_03 AC 76 ms
71,336 KB
testcase_04 AC 73 ms
71,236 KB
testcase_05 AC 74 ms
70,996 KB
testcase_06 AC 74 ms
71,232 KB
testcase_07 AC 72 ms
70,756 KB
testcase_08 AC 72 ms
70,756 KB
testcase_09 AC 73 ms
70,752 KB
testcase_10 AC 74 ms
71,156 KB
testcase_11 AC 74 ms
70,892 KB
testcase_12 AC 75 ms
71,148 KB
testcase_13 AC 78 ms
76,364 KB
testcase_14 AC 80 ms
76,168 KB
testcase_15 AC 83 ms
76,312 KB
testcase_16 AC 85 ms
79,212 KB
testcase_17 AC 90 ms
85,604 KB
testcase_18 AC 73 ms
71,104 KB
testcase_19 AC 94 ms
89,372 KB
testcase_20 AC 94 ms
88,808 KB
testcase_21 AC 75 ms
71,180 KB
testcase_22 AC 74 ms
71,240 KB
testcase_23 AC 105 ms
93,628 KB
testcase_24 AC 102 ms
93,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
P = list(map(int,input().split()))
if 0 in P:
    print(0)
    exit()
ans = 1
for p in P:
    ans *= p%9
    ans %= 9
print(ans if ans else 9)
0