結果

問題 No.933 おまわりさんこいつです
ユーザー tyawanmusityawanmusi
提出日時 2019-11-29 22:17:03
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 135 bytes
コンパイル時間 133 ms
コンパイル使用メモリ 82,236 KB
実行使用メモリ 82,980 KB
最終ジャッジ日時 2024-05-01 00:32:16
合計ジャッジ時間 5,304 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
60,552 KB
testcase_01 AC 31 ms
52,948 KB
testcase_02 AC 30 ms
52,556 KB
testcase_03 AC 34 ms
52,396 KB
testcase_04 AC 34 ms
52,556 KB
testcase_05 AC 32 ms
52,752 KB
testcase_06 AC 32 ms
53,512 KB
testcase_07 AC 33 ms
53,404 KB
testcase_08 AC 36 ms
52,504 KB
testcase_09 AC 31 ms
53,472 KB
testcase_10 AC 31 ms
52,832 KB
testcase_11 AC 38 ms
58,532 KB
testcase_12 AC 47 ms
61,388 KB
testcase_13 AC 361 ms
75,752 KB
testcase_14 AC 714 ms
75,568 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
p=list(map(int,input().split()))
a=1
for i in p:a*=i
while a>9:
  b=0
  while a>0:
    b+=a%10
    a//=10
  a=b
print(a)
0