結果

問題 No.2450 99-like Number
コンテスト
ユーザー もぐら 3.0
提出日時 2023-11-12 23:13:15
言語 PyPy3
(7.3.17)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 138 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 187 ms
コンパイル使用メモリ 82,188 KB
実行使用メモリ 53,920 KB
最終ジャッジ日時 2025-12-26 12:08:23
合計ジャッジ時間 1,706 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

N = int(input())

temp=N+1

while temp!=1:
    if temp%10==0:
        temp//=10
    else:
        print("No")
        exit()

print("Yes")
0