数列
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
给定一个正整数 ,把所有 的方幂及所有有限个互不相等的 的方幂之和构成一个递增的序列,例如,当 时,这个序列是:
该序列实际上就是:
请你求出这个序列的第 项的值( 用 进制数表示,从 开始)。
例如,对于,正确答案应该是 。
输入格式
输入文件只有 行,为 个正整数,用一个空格隔开:。
输出格式
输出文件为计算结果,是一个正整数(在所有的测试数据中,结果均不超过 )。(整数前不要有空格和其他符号)。
3 100
981
提示
noip2006普及组真题
- Status
- Done
- Rule
- OI
- Problem
- 4
- Start at
- 2024-9-27 17:45
- End at
- 2024-12-20 1:45
- Duration
- 3 hour(s)
- Host
- Partic.
- 3