結果

問題 No.1849 Three Times Value
ユーザー vwxyz
提出日時 2022-09-06 15:53:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 219 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-21 17:02:15
合計ジャッジ時間 4,443 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys
readline=sys.stdin.readline
write=sys.stdout.write
import itertools

N=int(readline())
ans=0
for n in range(1,10**5+1):
    if int(str(n)*3)<=N:
        ans+=1
print(ans)
0