結果

問題 No.1849 Three Times Value
ユーザー titan23
提出日時 2022-06-28 22:58:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 75,776 KB
最終ジャッジ日時 2024-11-21 18:01:20
合計ジャッジ時間 4,776 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

n = int(input())

ans = 0

for i in range(1, 10**6+1):
  j = int(str(i) * 3)
  if j <= n:
    ans += 1

print(ans)
0