結果

問題 No.1849 Three Times Value
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-11-25 14:01:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 320 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 64,192 KB
最終ジャッジ日時 2023-11-25 14:01:32
合計ジャッジ時間 3,254 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
55,596 KB
testcase_01 AC 43 ms
55,596 KB
testcase_02 AC 43 ms
57,704 KB
testcase_03 AC 45 ms
55,596 KB
testcase_04 AC 41 ms
55,596 KB
testcase_05 AC 42 ms
55,596 KB
testcase_06 WA -
testcase_07 AC 43 ms
55,596 KB
testcase_08 AC 42 ms
55,596 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 48 ms
64,192 KB
testcase_14 AC 47 ms
62,056 KB
testcase_15 AC 44 ms
57,704 KB
testcase_16 WA -
testcase_17 AC 49 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 46 ms
55,596 KB
testcase_22 AC 43 ms
55,596 KB
testcase_23 AC 42 ms
55,596 KB
testcase_24 AC 47 ms
57,704 KB
testcase_25 AC 49 ms
55,596 KB
testcase_26 AC 47 ms
62,056 KB
testcase_27 AC 48 ms
64,192 KB
testcase_28 AC 42 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,10001):
    s = str(i)
    if s[0]=='0':
        continue
    s = int(3*s)
    if s<=N:
        ans += 1
    else:
        break
print(ans)
0