結果
| 問題 | No.933 おまわりさんこいつです |
| コンテスト | |
| ユーザー |
Ultimate_Tea_04
|
| 提出日時 | 2020-05-01 22:26:19 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 504 ms |
| コンパイル使用メモリ | 21,084 KB |
| 実行使用メモリ | 15,612 KB |
| 最終ジャッジ日時 | 2026-05-31 04:39:52 |
| 合計ジャッジ時間 | 9,604 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 TLE * 1 -- * 8 |
ソースコード
def d(n):
ans = 0
while n > 0:
ans += n % 10
n //= 10
return ans
n = int(input())
s = input().split()
x = []
for i in s:
x.append(int(i))
ans = 1
for i in x:
ans *= i
while ans>9:
ans = d(ans)
print(ans)
Ultimate_Tea_04