結果
問題 | No.933 おまわりさんこいつです |
ユーザー | izumo |
提出日時 | 2019-11-29 23:08:18 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 111 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 51,884 KB |
最終ジャッジ日時 | 2024-05-01 00:46:05 |
合計ジャッジ時間 | 13,852 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 476 ms
44,244 KB |
testcase_01 | AC | 486 ms
44,112 KB |
testcase_02 | AC | 469 ms
44,248 KB |
testcase_03 | RE | - |
testcase_04 | WA | - |
testcase_05 | AC | 490 ms
44,364 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | RE | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 514 ms
47,956 KB |
testcase_18 | AC | 528 ms
43,980 KB |
testcase_19 | AC | 525 ms
50,260 KB |
testcase_20 | WA | - |
testcase_21 | AC | 485 ms
44,464 KB |
testcase_22 | AC | 499 ms
44,112 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
ソースコード
import sys import numpy as np read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines n=int(input()) p=list(map(int, input().split())) k=np.prod(np.array(p, dtype='int64')) while not len(str(k))==1: k=sum(list(map(int, str(k)))) print(k)