結果
問題 | No.933 おまわりさんこいつです |
ユーザー | kappybar |
提出日時 | 2020-03-26 10:46:32 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 364 ms |
コンパイル使用メモリ | 87,116 KB |
実行使用メモリ | 81,556 KB |
最終ジャッジ日時 | 2023-08-30 12:11:59 |
合計ジャッジ時間 | 6,687 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 75 ms
71,544 KB |
testcase_01 | AC | 74 ms
71,232 KB |
testcase_02 | AC | 72 ms
71,332 KB |
testcase_03 | AC | 72 ms
71,056 KB |
testcase_04 | AC | 74 ms
71,464 KB |
testcase_05 | AC | 74 ms
71,056 KB |
testcase_06 | AC | 74 ms
71,276 KB |
testcase_07 | AC | 72 ms
71,292 KB |
testcase_08 | AC | 74 ms
71,460 KB |
testcase_09 | AC | 72 ms
71,016 KB |
testcase_10 | AC | 72 ms
71,012 KB |
testcase_11 | AC | 80 ms
75,500 KB |
testcase_12 | AC | 92 ms
75,732 KB |
testcase_13 | AC | 435 ms
76,724 KB |
testcase_14 | AC | 826 ms
76,904 KB |
testcase_15 | TLE | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
ソースコード
n = int(input()) p = list(map(int,input().split())) ans = 1 for i in p: ans *= i while( ans > 9): pre = 0 pre,ans = ans,pre while(pre > 0): ans += pre%10 pre //= 10 print(ans)