結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2020-09-30 17:58:33 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 230 bytes |
コンパイル時間 | 74 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 27,036 KB |
最終ジャッジ日時 | 2024-07-06 05:38:10 |
合計ジャッジ時間 | 5,492 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 RE * 5 TLE * 1 -- * 1 |
コンパイルメッセージ
Main.py:2: SyntaxWarning: "is" with 'int' literal. Did you mean "=="? if len(str(n)) is 1:
ソースコード
def digitSum(n): if len(str(n)) is 1: return n dst = sum(list(map(int, str(n)))) return digitSum(dst) n = int(input()) num = 1 p = list(map(int,input().split())) for i in p: num *= i print(digitSum(num))