結果

問題 No.933 おまわりさんこいつです
ユーザー hir355
提出日時 2020-08-01 23:17:49
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,816 KB
最終ジャッジ日時 2024-07-08 10:44:08
合計ジャッジ時間 2,217 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
p = list(map(int, input().split()))
t = 1
for x in p:
    if x == 0:
        print(0)
        break
    t = t * x % 9
else:
    if t == 0:
        print(9)
    else:
        print(t)
0