結果

問題 No.1849 Three Times Value
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-11-25 14:03:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 321 bytes
コンパイル時間 311 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 72,384 KB
最終ジャッジ日時 2023-11-25 14:03:09
合計ジャッジ時間 2,772 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
55,596 KB
testcase_01 AC 43 ms
55,596 KB
testcase_02 AC 44 ms
57,704 KB
testcase_03 AC 43 ms
55,596 KB
testcase_04 AC 42 ms
55,596 KB
testcase_05 AC 43 ms
55,596 KB
testcase_06 AC 57 ms
70,336 KB
testcase_07 AC 42 ms
55,596 KB
testcase_08 AC 46 ms
55,596 KB
testcase_09 AC 58 ms
72,384 KB
testcase_10 AC 55 ms
72,384 KB
testcase_11 AC 55 ms
72,384 KB
testcase_12 AC 55 ms
72,384 KB
testcase_13 AC 48 ms
64,192 KB
testcase_14 AC 53 ms
64,192 KB
testcase_15 AC 44 ms
57,704 KB
testcase_16 AC 55 ms
72,384 KB
testcase_17 AC 48 ms
64,192 KB
testcase_18 AC 42 ms
55,596 KB
testcase_19 AC 42 ms
55,596 KB
testcase_20 AC 42 ms
55,596 KB
testcase_21 AC 43 ms
55,596 KB
testcase_22 AC 42 ms
55,596 KB
testcase_23 AC 42 ms
55,596 KB
testcase_24 AC 44 ms
57,704 KB
testcase_25 AC 43 ms
55,596 KB
testcase_26 AC 46 ms
62,056 KB
testcase_27 AC 47 ms
64,192 KB
testcase_28 AC 41 ms
55,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

N = int(input())

ans = 0
for i in range(1,100000):
    s = str(i)
    if s[0]=='0':
        continue
    s = int(3*s)
    if s<=N:
        ans += 1
    else:
        break
print(ans)
0