上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: Yi Sima was one of the best counselors of Cao Cao. He likes to play a funny game himself. It looks like the modern Sudoku, but smaller. Actually, Yi S 阅读全文
posted @ 2018-05-02 20:36 zhang_upstar 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Alice and Bob is playing a game. Each of them has a number. Alice’s number is A, and Bob’s number is B. Each turn, one player can do one of the follow 阅读全文
posted @ 2018-05-02 20:34 zhang_upstar 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Frog FZU - 2272 Therearex frogs and y chicken in a garden. Kim found there are n heads and m legs in the garden. Please tell Kim how many frogs and ch 阅读全文
posted @ 2018-05-02 20:29 zhang_upstar 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 阶乘除法 CSU - 1781 输入两个正整数 n, m,输出 n!/m!,其中阶乘定义为 n!= 1*2*3*...*n (n>=1)。 比如,若 n=6, m=3,则n!/m!=6!/3!=720/6=120。 是不是很简单?现在让我们把问题反过来:输入 k=n!/m!,找到这样的整数二元组(n 阅读全文
posted @ 2018-05-02 20:27 zhang_upstar 阅读(593) 评论(0) 推荐(0) 编辑
摘要: You are given a sequence a1, a2, ..., an of one-dimensional segments numbered 1through n. Your task is to find two distinct indices i and j such that 阅读全文
posted @ 2018-05-02 20:26 zhang_upstar 阅读(206) 评论(0) 推荐(0) 编辑
摘要: You might have heard about the next game in Lara Croft series coming out this year. You also might have watched its trailer. Though you definitely mis 阅读全文
posted @ 2018-05-02 20:24 zhang_upstar 阅读(320) 评论(0) 推荐(0) 编辑
摘要: String can be called correct if it consists of characters "0" and "1" and there are no redundant leading zeroes. Here are some examples: "0", "10", "1 阅读全文
posted @ 2018-05-02 20:23 zhang_upstar 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 1.改写comp从大到小排序。 运行结果: 233 113 23 13 3 什么会这样呢?比较时sort函数根据comp函数进行判断输的大小,系统默认 2.对结构体排序 比如ss结构体中a代表的是索引号,b代表的是索引对应的值,那么我想按索引排序,通过改写comp函数即可实现。 结果: 1 213  阅读全文
posted @ 2018-05-02 20:04 zhang_upstar 阅读(4296) 评论(0) 推荐(0) 编辑
摘要: Sudoku Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 3015 Accepted Submission(s): 1010 Problem 阅读全文
posted @ 2018-04-30 21:52 zhang_upstar 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Yu Zhou likes to play Go with Su Lu. From the historical research, we found that there are much difference on the rules between ancient go and modern 阅读全文
posted @ 2018-04-30 18:13 zhang_upstar 阅读(196) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页