結果

問題 No.933 おまわりさんこいつです
ユーザー tails1434tails1434
提出日時 2019-12-23 21:40:20
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 297 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 81,736 KB
実行使用メモリ 264,604 KB
最終ジャッジ日時 2023-10-19 04:35:37
合計ジャッジ時間 6,230 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
60,416 KB
testcase_01 AC 39 ms
53,404 KB
testcase_02 AC 38 ms
53,404 KB
testcase_03 AC 39 ms
53,404 KB
testcase_04 AC 38 ms
53,404 KB
testcase_05 AC 39 ms
53,404 KB
testcase_06 AC 38 ms
53,404 KB
testcase_07 AC 38 ms
53,404 KB
testcase_08 AC 39 ms
53,404 KB
testcase_09 AC 38 ms
53,404 KB
testcase_10 AC 38 ms
53,404 KB
testcase_11 AC 43 ms
59,420 KB
testcase_12 AC 43 ms
59,420 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 69 ms
84,980 KB
testcase_18 AC 38 ms
53,404 KB
testcase_19 AC 159 ms
88,472 KB
testcase_20 RE -
testcase_21 AC 38 ms
53,404 KB
testcase_22 AC 38 ms
53,404 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    P = list(map(int, input().split()))
    A = 1
    for p in P:
        A *= p

    ans = str(A)
    while len(ans) > 1:
        tmp = 0
        for a in ans:
            tmp += int(a)
        ans = str(tmp)

    print(ans)

if __name__ == "__main__":
    main()
0