結果
| 問題 | No.1849 Three Times Value |
| ユーザー |
|
| 提出日時 | 2023-11-25 14:03:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 2,000 ms |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 304 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 70,656 KB |
| 最終ジャッジ日時 | 2026-04-13 13:29:28 |
| 合計ジャッジ時間 | 2,754 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 |
ソースコード
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)