結果

問題 No.933 おまわりさんこいつです
ユーザー rkyiolklorkyiolklo
提出日時 2020-05-03 14:56:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 10,728 KB
実行使用メモリ 20,420 KB
最終ジャッジ日時 2023-09-02 22:15:41
合計ジャッジ時間 2,544 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 16 ms
7,964 KB
testcase_02 AC 15 ms
7,820 KB
testcase_03 AC 15 ms
7,864 KB
testcase_04 AC 15 ms
7,752 KB
testcase_05 AC 15 ms
7,760 KB
testcase_06 AC 15 ms
7,832 KB
testcase_07 AC 15 ms
7,752 KB
testcase_08 AC 16 ms
7,796 KB
testcase_09 AC 15 ms
7,864 KB
testcase_10 AC 16 ms
7,932 KB
testcase_11 AC 16 ms
7,908 KB
testcase_12 AC 17 ms
7,808 KB
testcase_13 AC 18 ms
8,256 KB
testcase_14 AC 19 ms
8,600 KB
testcase_15 AC 22 ms
9,152 KB
testcase_16 AC 33 ms
11,452 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 15 ms
7,752 KB
testcase_22 AC 16 ms
7,752 KB
testcase_23 AC 80 ms
20,420 KB
testcase_24 AC 79 ms
20,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
P=list(map(int,input().split()))
cnt=1
for i in range(n):
    if P[i]==0:
        print(0)
        break
    cnt*=P[i]%9

print(cnt%9 if cnt!=0 else 9)
0