結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
|
提出日時 | 2020-05-02 13:29:21 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 396 bytes |
コンパイル時間 | 274 ms |
コンパイル使用メモリ | 82,408 KB |
実行使用メモリ | 448,000 KB |
最終ジャッジ日時 | 2024-12-29 20:40:43 |
合計ジャッジ時間 | 12,666 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 TLE * 3 |
ソースコード
import sys sys.setrecursionlimit(10**6) def get_digit_sum(n): if n < 10: return n else: return get_digit_sum(n % 10 + n // 10) def main(): length = int(input()) sequence = [get_digit_sum(int(x)) for x in input().split()] product = 1 for seq in sequence: product *= seq print(get_digit_sum(product)) if __name__ == '__main__': main()