結果
| 問題 |
No.1849 Three Times Value
|
| ユーザー |
|
| 提出日時 | 2023-11-25 14:01:28 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 320 bytes |
| コンパイル時間 | 215 ms |
| コンパイル使用メモリ | 82,688 KB |
| 実行使用メモリ | 63,360 KB |
| 最終ジャッジ日時 | 2024-09-26 10:37:18 |
| 合計ジャッジ時間 | 2,857 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 WA * 6 |
ソースコード
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)