結果

問題 No.933 おまわりさんこいつです
ユーザー c0degeekc0degeek
提出日時 2019-11-29 23:09:51
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 160 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 87,076 KB
実行使用メモリ 265,696 KB
最終ジャッジ日時 2023-08-13 06:51:57
合計ジャッジ時間 7,087 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
78,312 KB
testcase_01 AC 73 ms
71,504 KB
testcase_02 AC 72 ms
71,268 KB
testcase_03 AC 74 ms
71,448 KB
testcase_04 AC 73 ms
71,472 KB
testcase_05 AC 72 ms
71,064 KB
testcase_06 AC 72 ms
71,216 KB
testcase_07 AC 73 ms
71,404 KB
testcase_08 AC 72 ms
71,400 KB
testcase_09 AC 72 ms
71,220 KB
testcase_10 AC 73 ms
71,476 KB
testcase_11 AC 72 ms
71,284 KB
testcase_12 AC 73 ms
71,376 KB
testcase_13 AC 79 ms
76,220 KB
testcase_14 AC 86 ms
76,904 KB
testcase_15 AC 117 ms
77,020 KB
testcase_16 AC 472 ms
79,980 KB
testcase_17 AC 98 ms
84,420 KB
testcase_18 AC 71 ms
71,288 KB
testcase_19 AC 178 ms
87,268 KB
testcase_20 AC 383 ms
86,268 KB
testcase_21 AC 72 ms
71,552 KB
testcase_22 AC 71 ms
71,564 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

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