結果

問題 No.933 おまわりさんこいつです
ユーザー tails1434tails1434
提出日時 2019-12-23 21:39:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 297 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 28,044 KB
最終ジャッジ日時 2023-10-19 04:34:54
合計ジャッジ時間 6,124 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
14,560 KB
testcase_01 AC 29 ms
10,212 KB
testcase_02 AC 29 ms
10,212 KB
testcase_03 AC 31 ms
10,212 KB
testcase_04 AC 30 ms
10,212 KB
testcase_05 AC 30 ms
10,212 KB
testcase_06 AC 30 ms
10,212 KB
testcase_07 AC 30 ms
10,212 KB
testcase_08 AC 29 ms
10,216 KB
testcase_09 AC 30 ms
10,216 KB
testcase_10 AC 30 ms
10,216 KB
testcase_11 AC 30 ms
10,236 KB
testcase_12 AC 31 ms
10,288 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 AC 59 ms
19,136 KB
testcase_18 AC 31 ms
10,212 KB
testcase_19 AC 127 ms
21,704 KB
testcase_20 RE -
testcase_21 AC 30 ms
10,212 KB
testcase_22 AC 30 ms
10,212 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