結果

問題 No.8101 砂嵐
ユーザー titia
提出日時 2023-04-04 05:50:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 211 bytes
コンパイル時間 562 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-25 08:12:34
合計ジャッジ時間 4,251 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 62
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
def f(x):
    if x<10:
        return 0
    a=1
    for i in range(30):
        if 10**i<=x:
            to=i
    for i in range(to+1):
        a=a*((x//(10**i))%10)
    return 1+f(a)
print(f(n))
0