F.A.Qs Home ProblemSet Status Ranklist Contest LoginRegister
Notice:祝各位Oier新年快乐,Rp++!
大视野在线测评-欢迎您
[ New Thread ]
Problem 2480 >> 数据有错吧
kczno1 @ 2017-10-11 09:37:50
[ Quote ] [ Edit ] [ Delete ] 1#
p=1时puts("0")就过了
但应该puts("No Solution")才对
因为b是正整数不会是0,而任何数mod 1一定是0
ccc000111 @ 2017-10-11 19:33:01
[ Quote ] [ Edit ] [ Delete ] 2#
自然数包括0……
kczno1 @ 2017-10-12 07:33:49
[ Quote ] [ Edit ] [ Delete ] 3#
但读入的数是正整数
所以p=1时答案不可能是0
kczno1 @ 2017-10-12 07:34:41
[ Quote ] [ Edit ] [ Delete ] 4#
b>=p时显然无解
RabbitHu @ 2017-12-27 11:23:03
[ Quote ] [ Edit ] [ Delete ] 5#
题面方程的意思不是 A % P == B % P 嘛
而不是 A % P == B
(可能您是这么理解的?)
kczno1 @ 2018-01-23 21:37:42
[ Quote ] [ Edit ] [ Delete ] 6#
这样啊。。是我理解错了。。
[Top] [Previous Page] [Next Page]

HOME Back