結果

問題 No.1849 Three Times Value
ユーザー ShirotsumeShirotsume
提出日時 2022-02-21 22:19:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 306 ms
コンパイル使用メモリ 86,708 KB
実行使用メモリ 76,164 KB
最終ジャッジ日時 2023-09-15 09:58:40
合計ジャッジ時間 4,055 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
76,032 KB
testcase_01 AC 83 ms
75,980 KB
testcase_02 AC 83 ms
76,064 KB
testcase_03 AC 82 ms
75,912 KB
testcase_04 AC 81 ms
76,040 KB
testcase_05 AC 82 ms
75,996 KB
testcase_06 AC 87 ms
76,164 KB
testcase_07 AC 81 ms
75,956 KB
testcase_08 AC 85 ms
75,912 KB
testcase_09 AC 86 ms
76,028 KB
testcase_10 AC 83 ms
75,960 KB
testcase_11 AC 82 ms
75,740 KB
testcase_12 AC 80 ms
75,996 KB
testcase_13 AC 84 ms
75,928 KB
testcase_14 AC 85 ms
75,932 KB
testcase_15 AC 83 ms
75,684 KB
testcase_16 AC 85 ms
75,912 KB
testcase_17 AC 84 ms
75,752 KB
testcase_18 AC 82 ms
75,920 KB
testcase_19 AC 82 ms
75,896 KB
testcase_20 AC 82 ms
75,748 KB
testcase_21 AC 82 ms
76,084 KB
testcase_22 AC 82 ms
75,908 KB
testcase_23 AC 82 ms
76,028 KB
testcase_24 AC 82 ms
76,040 KB
testcase_25 AC 83 ms
75,896 KB
testcase_26 AC 84 ms
76,044 KB
testcase_27 AC 82 ms
75,808 KB
testcase_28 AC 81 ms
75,992 KB
権限があれば一括ダウンロードができます

ソースコード

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