結果

問題 No.933 おまわりさんこいつです
ユーザー dangodango
提出日時 2023-06-13 19:20:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 198 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 1,172 ms
コンパイル使用メモリ 86,872 KB
実行使用メモリ 93,492 KB
最終ジャッジ日時 2023-09-04 05:42:58
合計ジャッジ時間 4,113 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,184 KB
testcase_01 AC 75 ms
71,340 KB
testcase_02 AC 77 ms
71,124 KB
testcase_03 AC 78 ms
71,264 KB
testcase_04 AC 75 ms
71,112 KB
testcase_05 AC 76 ms
71,104 KB
testcase_06 AC 75 ms
70,992 KB
testcase_07 AC 75 ms
71,272 KB
testcase_08 AC 75 ms
71,160 KB
testcase_09 AC 76 ms
71,188 KB
testcase_10 AC 77 ms
71,252 KB
testcase_11 AC 87 ms
75,412 KB
testcase_12 AC 91 ms
76,460 KB
testcase_13 AC 90 ms
76,516 KB
testcase_14 AC 94 ms
76,740 KB
testcase_15 AC 98 ms
76,956 KB
testcase_16 AC 116 ms
80,136 KB
testcase_17 AC 113 ms
87,244 KB
testcase_18 AC 77 ms
71,056 KB
testcase_19 AC 121 ms
90,324 KB
testcase_20 AC 120 ms
89,508 KB
testcase_21 AC 77 ms
71,384 KB
testcase_22 AC 74 ms
71,284 KB
testcase_23 AC 193 ms
93,420 KB
testcase_24 AC 198 ms
93,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
P = list(map(int,input().split()))
A = 1
for i in P:
  A *= i
  while A > 9:
      A = sum(map(int, list(str(A))))
print(A)
0