結果

問題 No.933 おまわりさんこいつです
ユーザー brthyyjpbrthyyjp
提出日時 2020-04-02 06:05:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 87,144 KB
実行使用メモリ 94,276 KB
最終ジャッジ日時 2023-09-10 06:55:44
合計ジャッジ時間 6,123 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,336 KB
testcase_01 AC 71 ms
71,300 KB
testcase_02 AC 72 ms
71,500 KB
testcase_03 AC 73 ms
71,192 KB
testcase_04 AC 71 ms
71,192 KB
testcase_05 AC 70 ms
71,156 KB
testcase_06 AC 71 ms
71,356 KB
testcase_07 AC 71 ms
71,492 KB
testcase_08 AC 71 ms
71,360 KB
testcase_09 AC 72 ms
71,572 KB
testcase_10 AC 73 ms
71,340 KB
testcase_11 AC 72 ms
71,452 KB
testcase_12 AC 73 ms
71,452 KB
testcase_13 AC 77 ms
76,684 KB
testcase_14 AC 79 ms
76,544 KB
testcase_15 AC 87 ms
77,268 KB
testcase_16 AC 143 ms
80,112 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 405 ms
89,392 KB
testcase_21 AC 71 ms
71,332 KB
testcase_22 AC 70 ms
71,376 KB
testcase_23 AC 587 ms
94,276 KB
testcase_24 AC 872 ms
94,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
P = list(map(int, input().split()))

ans = 1
for p in P:
    if p%9 == 0:
        ans *= 9
    else:
        ans *= p%9
if 0 <= ans <= 8:
    print(ans)
else:
    if ans%9 == 0:
        print(9)
    else:
        print(ans%9)
0