码迷,mamicode.com
首页 >  
搜索关键字:编程题    ( 1383个结果
[编程题]数字分类
给定一系列正整数,请按要求对数字进行分类,并输出以下5个数字:A1 = 能被5整除的数字中所有偶数的和; A2 = 将被5除后余1的数字按给出顺序进行交错求和,即计算n1-n2+n3-n4…; A3 = 被5除后余2的数字的个数; A4 = 被5除后余3的数字的平均数,精确到小数点后1位; A5 = 被5除后余4的数字中最大数字。 输入描述:每个输入包含1个测试用例。每个测试用例先给出一个不...
分类:其他好文   时间:2015-06-16 09:28:27    阅读次数:141
[编程题]Shuffling Machine (洗牌程序)
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid “inside jobs” where employees collaborate with gamblers...
分类:系统相关   时间:2015-06-16 09:26:09    阅读次数:160
[编程题]Be Unique (赌徒下注问题)
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1, 104 ]. The first one who bets on...
分类:其他好文   时间:2015-06-16 09:25:55    阅读次数:552
javascript 编程题目
1.you need to find the length of the sequence in an array, between the first and the second occurance of a specified number. /* 你需要找到一个数组中 指定元素 第一次 出现...
分类:编程语言   时间:2015-06-12 19:01:28    阅读次数:144
8659 Mine Sweeping
时间限制:500MS 内存限制:65535K提交次数:37 通过次数:15题型: 编程题语言: G++;GCCDescriptionThe opening ceremony of the 28th Asia Game is coming. In order to prevent the game f...
分类:其他好文   时间:2015-06-10 14:05:57    阅读次数:182
10324 Global Warming dfs + 二分
时间限制:1000MS 内存限制:65535K提交次数:0 通过次数:0题型: 编程题语言: G++;GCCDescriptionGlobal warming is a big problem, isn't it? It is reported that the ice of Antarctica ...
分类:其他好文   时间:2015-05-27 13:46:52    阅读次数:145
1140 分珠 dfs
时间限制:500MS 内存限制:65536K提交次数:24 通过次数:18题型: 编程题语言: G++;GCCDescription如下图所示,有若干珠子,每颗珠子重量不同,珠子之间有一些细线将它们连在一起。现要求切断一些细线,将它们分成两部分,分割后,单独每一部分的珠子仍保持相连,且要求尽量做到两...
分类:其他好文   时间:2015-05-25 16:02:11    阅读次数:402
恒生电子长沙2016实习生笔试题
题目分类:CS基础(不定项选择)+语言基础(不定项选择)+DB/SQL(大题)+编程题(大题)+算法题(大题)+心理测试(单选)+逻辑测试(单选)(做过行测基本无压力)试卷下载:http://files.cnblogs.com/files/HuoAA/%E6%81%92%E7%94%9F%E7%94...
分类:其他好文   时间:2015-05-24 17:07:03    阅读次数:146
几个有意思的运维编程题
使用for循环在/oldboy目录下通过随机小写10个字母加固定字符串oldboy批量创建10个html文件,名称例如为: 1 2 3 4 5 6 [root@oldboy oldboy]# sh /server/scripts/oldboy.sh [root@oldboy oldboy]# ls  coao...
分类:其他好文   时间:2015-05-22 15:14:47    阅读次数:138
17996 Daily Cool Run (dp)
时间限制:1000MS 内存限制:65535K提交次数:0 通过次数:0 题型: 编程题语言: 不限定DescriptionDaily Cool Run is a popular game, and Xdp enjoys playing the game recently. While playin...
分类:其他好文   时间:2015-05-21 22:03:30    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!