結果
問題 |
No.933 おまわりさんこいつです
|
ユーザー |
![]() |
提出日時 | 2019-12-25 23:13:41 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 22,084 KB |
最終ジャッジ日時 | 2024-10-01 09:30:13 |
合計ジャッジ時間 | 3,547 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 1 RE * 7 |
ソースコード
N=int(input()) xs=list(map(int,input().split())) a=1 for x in xs: if x%9 != 0: a*= (x%9) #数字根の性質で Nの数字根 = N%9の数字根 else: a*= 9 a = str(a) while len(a)>1: a = sum([int(a0) for a0 in list(a)]) a = str(a) print(a)