这道题怎么四年级解决问题60道?

请教大家,这道面试题的解决思路。。。_资讯_突袭网-提供留学,移民,理财,培训,美容,整形,高考,外汇,印刷,健康,建材等信息
当前位置&:&&&&请教大家,这道面试题的解决思路。。。
热门标签:&
请教大家,这道面试题的解决思路。。。
编辑:章玉评论:
用户提出问题:请教大家,这道面试题的解决思路。。。,具体如下:
通过互联网整理获得以下解决方法:=================1楼=====================
str.replaceAll("[0]{2,}",&"0");正则表达式菜鸟。。不知对不对
=================2楼=====================
凑热闹,看大神,正则没毛病。
=================3楼=====================
正则表达式替换很好,可能是应用中的方法;
从算法的角度的话,可能需要你手动去处理,这种简单压缩类的算法,可以使用双(前后)指针去扫描处理。
前指针从index为0开始扫描,至结束,处理如下:
当为‘0’时,新(后)指针检查下一个是否为‘0’(注意后指针可能越界,必须做出判断),是的话,则加一跳到下一个字符;不是的话,则直接将前面跳到现在的字符位置。
不为‘0’则保留该字符。
一点拙见,希望对你有用。
=================4楼=====================
我也想到的是正则表达式.如果不用正则表达式的话,可能会很麻烦.楼上说的双重指针的办法也很好
=================5楼=====================
该回复于 16:04:04被管理员删除
=================6楼=====================
该回复于 16:09:56被管理员删除
如果您还有更好的解决方法,请在最下面评论中留下您的解决方法
(转载请注明出处和)这道数量题目如何解决,求详细的
136 次浏览
20:20 提问
你想知道的这里都有
已解决问题:262,070,640
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
京ICP证050897号谁能帮我解决这道题?
昨天,从“疗斋网”上看到一道题,我想了一晚上都不知道答案:  有3个人去投宿,  一晚30元.  三个人每人掏了10元凑够30元交给了老板.  后来老板说今天优惠只要25元就够了,  拿出5元命令服务生退还给他们,  服务生偷偷藏起了2元,  然后,  把剩下的3元钱分给了那三个人,  每人分到1元.  这样,  一开始每人掏了10元,  现在又退回1元,  也就是10-1=9,  每人只花了9元钱,  3个人每人9元,  3 X 9 = 27元 + 服务生藏起的2元=29元,  还有一元钱去了哪里???
10-03-30 &
这种算法当然不对了. 理由:(1)某三个人在一家客栈住房,结果每人10元,共10×3=30元。 (2)每人退回1元钱,即每人花了9元钱,三人一共花了27元钱.这27元里老板留下25元,小二私自留下2元. (3)再加上退回的3元钱,结果正好是30元. 结论:这道题迷惑人主要是它把那2元钱从27元钱当中分离了出来,原题的算法错误的认为小二私自留下的2元不包含在27元当中,所以也就有了少1元钱的错误结果;而实际上私自留下的2元钱就包含在这27元当中,再加上退回的3元钱,结果正好是30元
请登录后再发表评论!
此题中27和2没有联系,不能相加在一起。27元是他们出的钱,2是服务生所得的钱,这两个相减是老板得的25元,这27元中已经包含了2元,不能再算。而不是在3 X9=27元之外的。对于顾客来说他们为投宿支付了9元/人,那么 3 X 9元 = 27 元 + (退回的)3元=30 元 ; 对于老板 (顾客支付的)30 元 - (服务生藏起的)2元- (服务生退回的)3元=(实际收入)25元; 对于服务员 (顾客支付的)30 元- (退回给顾客的)3元-(上缴老板的)25元=(服务生藏起的)2元。
请登录后再发表评论!后使用快捷导航没有帐号?
本贴相关题目
Outsourcing is the practice of obtaining from an independent supplier a product or service that a company has previously provided for itself. Vernon, Inc., a small manufacturing company that has in recent years experienced a decline in its profits, plans to boost its profits by outsourcing those parts of its business that independent suppliers can provide at lower cost than Vernon can itself.
Which of the following, if true, most strongly supports the prediction that Vernon's plan will achieve its goal?
AAmong the parts of its business that Vernon does not plan to outsource are some that require standards of accuracy too high for most independent suppliers to provide at lower cost than Vernon can.&&BVernon itself acts as an independent supplier of specialized hardware items to certain manufacturers that formerly made those items themselves.&&CRelatively few manufacturers that start as independent suppliers have been able to expand their business and become direct competitors of the companies they once supplied.&&DVernon plans to select the independent suppliers it will use on the basis of submitted bids.&&EAttending to certain tasks that Vernon performs relatively inefficiently has taken up much of the time and effort of top managers whose time would have been better spent attending to Vernon's core business.&&
正确答案: E
更多相关帖子
查看: 4560|回复: 13
在线时间 小时
Outsourcing is the practice of obtaining from an independent supplier a product or service that a company has previously provided for itself. &Vernon, Inc., a small manufacturing company that has in recent years experienced a decline in its profits, plans to boost its profits by outsourcing those parts of its business that independent suppliers can provide at lower cost than Vernon can itself.Which of the following, if true, most strongly supports the prediction that Vernon's plan will achieve its goal?(A) Among the parts of its business that Vernon does not plan to outsource are some that require standards of accuracy too high for most independent suppliers to provide at lower cost than Vernon can.(B) Vernon itself acts as an independent supplier of specialized hardware items to certain manufacturers that formerly made those items themselves.(C) Relatively few manufacturers that start as independent suppliers have been able to expand their business and become direct competitors of the companies they once supplied.(D) Vernon plans to select the independent suppliers it will use on the basis of submitted bids.(E) Attending to certain tasks that Vernon performs relatively inefficiently has taken up much of the time and effort of top managers whose time would have been better spent attending to Vernon's core business.我徘徊在C和E & &C和E好像都对 啊 & & &纠结啊
在线时间 小时
c。你所说的E 说的 CORE OR NON CORE TASK,和outsource product无关。
在线时间 小时
可是答案是C啊
在线时间 小时
stimulus的逻辑结构是outsourcing可降低成本,一公司为了降低成本(目的),把一些业务外包出去先看C,C是通过消除削弱的可能达到支持的作用,承担外包的公司不会与Vernon竞争,消除了不利的影响因素再看EE只是说outsourcing可以节约时间和让manager做core business,并没有对降低成本的起到任何影响(如果说让manager做core business可以降低成本,这就有二次延伸,不如C直接)
在线时间 小时
我看错了 & 答案是E 。。。
在线时间 小时
坚持是CE的time和core business不能确定公司的profit就一定增加但C如果新的竞争者参与会使得profit减少
在线时间 小时
I think the answer is EThe company's purpose is to boost its profit by decrease its costC is irrelevantWe all know that in the business world,there is no forever friend.Even though the outsourcing-company will become a director competitor,temporary coorperation is deserve.)The plan is just focus on company's RECENT situation.E is correct:It points out that if the company implement the plan,the company can decrease OPPORTUNITY COST.
在线时间 小时
好吧~~~其实这题好像是一道削弱题的改编~~~我觉得C和E都有延伸的意思,都没有直接说道cost这个核心但DENGTS同学指出opportunity cost作为一个本科学经济的同学,我还是比较认可的~~~如果stimulus里探讨的不是会计意义上的成本,而是经济成本那E的确是公司的opportunity cost~~~饿总之我觉得题出得不好~~~~欢迎拍砖
在线时间 小时
For answer C, it describes what happened to those manufacturers which start as independent suppliers first, NOT the independent supplier itself. And the stimuli has never mentioned that independent supplier that the company is looking for will become a manufacturer in future. This is considered as a shell game answer. It secretly changed the subject of the discussion to a similar but totally different one to confuse you.As for answer E, it can be logically assumed that when mgmt pays more attention to the core business, the profits generated from it could be increased and therefore it can boost the overall profit as well.
在线时间 小时
you need an answer choice that shows that OUTSOURCING WILL BE MORE PROFITABLE THAN NOT OUTSOURCING. the other four answer choices are completely irrelevant to the issue, which is the effect of outsourcing on profit.. choice (e),E is best- It shows a precise advantage of implementing the plan! therefore, even though (e) requires additional assumptions, it's still the choice that &most strongly supports& the argument - because it's the only choice that even could support the argument.
所属分类: GMAT考试
正在浏览此版块的会员 ()
ChaseDream 论坛
All Rights Reserved.}

我要回帖

更多关于 解决问题才是硬道理 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信