ChaseDream
搜索
返回列表 发新帖
查看: 666|回复: 0
打印 上一主题 下一主题

问到数学DS题

[复制链接]
跳转到指定楼层
楼主
发表于 2010-1-5 03:25:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
If x and y are integers and xy<>0, what is the remainder when x is divided by y?
(1) when x is divided by 2y, the remainder is 4;
(2) when x+y is divided by y, the remainder is 4;

有人给的解释 但不太理解 谢谢

【答案】B
【思路】(1)X=2Y*K+4=2K*Y+4 举反例:当Y=4,X=4时,X/Y的余数为0。当Y=3,X=10时,X/Y的余数为1. (2)X+Y=Y*K+4 则X=(K-1)Y+4, 所以X/Y的余数为4
收藏收藏 收藏收藏
您需要登录后才可以回帖 登录 | 立即注册

Mark一下! 看一下! 顶楼主! 感谢分享! 快速回复:

手机版|ChaseDream|GMT+8, 2025-2-22 18:31
京公网安备11010202008513号 京ICP证101109号 京ICP备12012021号

ChaseDream 论坛

© 2003-2025 ChaseDream.com. All Rights Reserved.

返回顶部