上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 98 下一页
摘要: Given an array of scores that are non-negative integers. Player 1 picks one of the numbers from either end of the array followed by the player 2 and t 阅读全文
posted @ 2019-03-07 11:03 Veritas_des_Liberty 阅读(212) 评论(0) 推荐(0)
摘要: Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like this: "...zabcdefghijklmnopqrstuvwxyza 阅读全文
posted @ 2019-03-06 22:32 Veritas_des_Liberty 阅读(261) 评论(0) 推荐(0)
摘要: In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, suppose you are a domin 阅读全文
posted @ 2019-03-06 21:33 Veritas_des_Liberty 阅读(284) 评论(0) 推荐(0)
摘要: 完整的类定义: 完整的接口定义: 有三种方法要求固定的声明方式 完整的java源文件 阅读全文
posted @ 2019-03-06 18:04 Veritas_des_Liberty 阅读(225) 评论(0) 推荐(0)
摘要: 用“埃氏筛法”求2~10000以内的素数。2~10000以内的数,先去掉2的倍数,再去掉3的倍数,再去掉4的倍数,……依此类推,最后剩下的就是素数。 Code: 阅读全文
posted @ 2019-03-06 15:54 Veritas_des_Liberty 阅读(289) 评论(0) 推荐(0)
摘要: Define S = [s,n] as the string S which consists of n connected strings s. For example, ["abc", 3] ="abcabcabc". On the other hand, we define that stri 阅读全文
posted @ 2019-03-05 22:18 Veritas_des_Liberty 阅读(338) 评论(0) 推荐(0)
摘要: 萌萌哒表情符号通常由“手”、“眼”、“口”三个主要部分组成。简单起见,我们假设一个表情符号是按下列格式输出的: 现给出可选用的符号集合,请你按用户的要求输出表情。 输入格式: 输入首先在前三行顺序对应给出手、眼、口的可选符号集。每个符号括在一对方括号 []内。题目保证每个集合都至少有一个符号,并不超 阅读全文
posted @ 2019-03-01 22:37 Veritas_des_Liberty 阅读(287) 评论(0) 推荐(0)
摘要: 批改多选题是比较麻烦的事情,本题就请你写个程序帮助老师批改多选题,并且指出哪道题错的人最多。 输入格式: 输入在第一行给出两个正整数 N(≤ 1000)和 M(≤ 100),分别是学生人数和多选题的个数。随后 M 行,每行顺次给出一道题的满分值(不超过 5 的正整数)、选项个数(不少于 2 且不超过 阅读全文
posted @ 2019-03-01 22:36 Veritas_des_Liberty 阅读(371) 评论(0) 推荐(0)
摘要: 编程题#1:输出200 来源: 北京大学在线程序评测系统POJ (Coursera声明:在POJ上完成的习题将不会计入Coursera的最后成绩。) 总时间限制: 1000ms 内存限制: 1024kB 描述使以下代码输出结果为200. 输入不需要输入。 输出输出结果为200。 Code: 编程题# 阅读全文
posted @ 2019-02-28 21:10 Veritas_des_Liberty 阅读(1063) 评论(0) 推荐(0)
摘要: In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach o 阅读全文
posted @ 2019-02-28 09:55 Veritas_des_Liberty 阅读(342) 评论(0) 推荐(0)
上一页 1 ··· 34 35 36 37 38 39 40 41 42 ··· 98 下一页