結果

問題 No.1849 Three Times Value
ユーザー titan23titan23
提出日時 2022-06-28 22:58:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 82,152 KB
実行使用メモリ 75,776 KB
最終ジャッジ日時 2024-05-01 13:21:29
合計ジャッジ時間 4,261 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
75,776 KB
testcase_01 AC 100 ms
75,148 KB
testcase_02 AC 104 ms
75,472 KB
testcase_03 AC 107 ms
75,264 KB
testcase_04 AC 99 ms
75,392 KB
testcase_05 AC 103 ms
75,520 KB
testcase_06 AC 108 ms
75,520 KB
testcase_07 AC 107 ms
75,504 KB
testcase_08 AC 108 ms
75,392 KB
testcase_09 AC 111 ms
75,520 KB
testcase_10 AC 112 ms
75,392 KB
testcase_11 AC 108 ms
75,676 KB
testcase_12 AC 106 ms
75,648 KB
testcase_13 AC 110 ms
75,516 KB
testcase_14 AC 111 ms
75,392 KB
testcase_15 AC 104 ms
75,564 KB
testcase_16 AC 107 ms
75,648 KB
testcase_17 AC 111 ms
75,564 KB
testcase_18 AC 105 ms
75,392 KB
testcase_19 AC 104 ms
75,392 KB
testcase_20 AC 101 ms
75,648 KB
testcase_21 AC 101 ms
75,108 KB
testcase_22 AC 102 ms
75,136 KB
testcase_23 AC 101 ms
75,648 KB
testcase_24 AC 107 ms
75,264 KB
testcase_25 AC 104 ms
75,392 KB
testcase_26 AC 106 ms
75,524 KB
testcase_27 AC 108 ms
75,392 KB
testcase_28 AC 103 ms
75,420 KB
権限があれば一括ダウンロードができます

ソースコード

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