結果

問題 No.1849 Three Times Value
ユーザー nyya
提出日時 2022-12-23 00:14:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 407 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 69,376 KB
最終ジャッジ日時 2024-11-18 03:45:26
合計ジャッジ時間 1,832 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

ans = 0
now = 1
t = str(now) + str(now) + str(now)

while int(t)<=n:
    ans += 1
    now += 1
    t = str(now) + str(now) + str(now)

print(ans)
0