Problem 1936 --Problem D: Division

1936: Problem D: Division

"
Time Limit $1$ 秒/Second(s) Memory Limit $512$ 兆字节/Megabyte(s)
提交总数 $2$ 正确数量 $1$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签

Problem D: Division

Given t, a, b positive integers not bigger than 2147483647, establish whether (t^a - 1)/(t^b -1) is an integer with less than 100 digits. Each line of input contains t, a, b. For each line of input print the formula followed by its value, or followed by "is not an integer with less than 100 digits.", whichever is appropriate.

2 9 3
2 3 2
21 42 7
123 911 1
(2^9-1)/(2^3-1) 73
(2^3-1)/(2^2-1) is not an integer with less than 100 digits.
(21^42-1)/(21^7-1) 18952884496956715554550978627384117011154680106
(123^911-1)/(123^1-1) is not an integer with less than 100 digits.

推荐代码 查看1936 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$108 $ms] AOJ大管家 84451 2017-04-27 15:30:03
内存最少[$10948 $KB] AOJ大管家 84451 2017-04-27 15:30:03
第一AC AOJ大管家 84451 2017-04-27 15:30:03
第一挑战 AOJ大管家 84451 2017-04-27 15:30:03

赛题来源/所属竞赛 NA N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛