本地题面缓存已迁移,解析内容待补充。
OJ: noi_openjudge
题目 ID: ch0113-49
难度:未知
标签:python
日期: 2026-07-30 23:01
完整题面见同目录的 problem.md。
problem.md
1 2 3 4 5 6 7 8 9 10base = int(input()) value = int(input()) power = 1 exponent = 0 while power * base <= value: power *= base exponent += 1 print(exponent)
base = int(input()) value = int(input()) power = 1 exponent = 0 while power * base <= value: power *= base exponent += 1 print(exponent)
给定两个正整数a(a>1)和b。可以知道一定存在整数x,使得x <= logab < x + 1 或者 ax<= b < ax+1请计算x。
两行,第一行是a,第二行是b。每个整数均不超过100位。
一行,即对应的x。输入数据保证x不大于20。
1 210000 1000000000001
10000 1000000000001
13
3