結果

問題 No.1849 Three Times Value
ユーザー Shirotsume
提出日時 2022-02-21 22:19:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 66,304 KB
最終ジャッジ日時 2024-07-02 13:54:52
合計ジャッジ時間 2,722 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
assert 1 <= n <= 10 ** 15
ans = 0
for v in range(1, 100001):
    if int(str(v) * 3) <= n:
        ans += 1
print(ans)
0