結果

問題 No.933 おまわりさんこいつです
ユーザー komkompikomkompi
提出日時 2019-12-17 07:34:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 111 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 20,504 KB
最終ジャッジ日時 2023-09-15 19:20:45
合計ジャッジ時間 1,725 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,784 KB
testcase_01 AC 16 ms
7,832 KB
testcase_02 AC 17 ms
8,164 KB
testcase_03 AC 16 ms
7,804 KB
testcase_04 AC 15 ms
8,068 KB
testcase_05 AC 15 ms
8,156 KB
testcase_06 AC 15 ms
8,220 KB
testcase_07 AC 15 ms
8,032 KB
testcase_08 AC 15 ms
8,072 KB
testcase_09 AC 16 ms
8,196 KB
testcase_10 AC 16 ms
8,108 KB
testcase_11 AC 15 ms
8,144 KB
testcase_12 AC 15 ms
8,128 KB
testcase_13 AC 16 ms
8,532 KB
testcase_14 AC 17 ms
8,748 KB
testcase_15 AC 18 ms
9,292 KB
testcase_16 AC 25 ms
11,440 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 31 ms
9,928 KB
testcase_21 AC 15 ms
7,788 KB
testcase_22 AC 15 ms
7,812 KB
testcase_23 AC 52 ms
20,504 KB
testcase_24 AC 53 ms
20,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

temp=1
for p in P:
    if p%9==0:
        print(9)
        exit()
    else:
        temp=(temp*p)%9
    if temp==0:
        print(9)
        exit()

print(temp)
0