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

求助PREP上的DS题

[复制链接]
跳转到指定楼层
楼主
发表于 2009-12-8 20:41:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
A certain list of several different integers. Is the product of all the integers in the list positive?

1 the product of the greatest and the smallest of the integers in the list is positive

2 there is an even number of integers in the list

请问大家选什么。。。答案是c 我选的E 我的思路是:如果这组数就-4 -2 -1 三个数的话,满足12两个条件,但是就不行,若果1 2  4 的话, 就可以,所以我选E,不知道我的思路对不对。。。

What is the remainder when the positive integer n is divided by the positive integer k (k>1)

1 n=(k+1)^3

2 k=5

答案是A。。。求做法。。。
收藏收藏 收藏收藏
沙发
 楼主| 发表于 2009-12-8 20:54:57 | 只看该作者
虽然不是寂静,但是还是希望NN能指点一二。。。
板凳
发表于 2009-12-8 21:00:07 | 只看该作者
1. even是偶数
2. n=(k+1)^3=k^3+3k^2+3k+1 被k除余1
地板
 楼主| 发表于 2009-12-8 21:06:35 | 只看该作者
1. even是偶数
2. n=(k+1)^3=k^3+3k^2+3k+1 被k除余1
-- by 会员 只有一切 (2009/12/8 21:00:07)
我知道是偶数。。。我举的例子里也都带偶数,但是有很多情况。。。是我想歪了吗?
5#
 楼主| 发表于 2009-12-8 21:08:00 | 只看该作者
失误了……是有偶数个整数……不是有个偶数在里面……我的错……
6#
发表于 2009-12-8 21:27:11 | 只看该作者
失误了……是有偶数个整数……不是有个偶数在里面……我的错……
-- by 会员 xiuyizhang (2009/12/8 21:08:00)




条件2是说数字个数为even

不是there is an even number  in the list

而是there is an even number of integers in the list  就是注意不要搞混了哈 做math最怕弄丢一两个词,致命啊......
您需要登录后才可以回帖 登录 | 立即注册

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

手机版|ChaseDream|GMT+8, 2025-5-9 21:40
京公网安备11010202008513号 京ICP证101109号 京ICP备12012021号

ChaseDream 论坛

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

返回顶部