
找规律
找规律的题目
xlx_llew
身为一个高冷的人,不需要简述。
展开
-
UVA 12293 Box Game
There are two identical boxes. One of them contains n balls, while the other box contains one ball.Alice and Bob invented a game with the boxes and balls, which is played as follows:Alice and Bob move...原创 2018-04-05 18:27:14 · 272 阅读 · 0 评论 -
hdu 1443 Joseph (约瑟夫环问题)
Problem DescriptionThe Joseph's problem is notoriously known. For those who are not familiar with the original problem: from among n people, numbered 1, 2, . . ., n, standing in circle every mth is go...原创 2018-05-17 16:44:22 · 1211 阅读 · 0 评论 -
[编程题]All-in-All
链接:https://www.nowcoder.com/questionTerminal/f7a802e07bf5462c88ab99d490cebc9d?orderByHotValue=1&questionTypes=000100&difficulty=00100&mutiTagIds=579&page=1&onlyReference=true来源:牛客网...原创 2018-04-07 01:37:26 · 530 阅读 · 0 评论 -
水仙花数
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=2010 代码: #include int judge(int a)//用外部函数判断是否为水仙花数 { int x,y,z; x=a/100; y=a/10%10; z=a%10; if(a==(x*x*x+y*y*y+z*z*z)) retu原创 2017-11-08 21:35:51 · 180 阅读 · 0 评论 -
C语言合法标识符
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=2024 代码: #include #include int main() { int n; scanf("%d",&n); getchar(); while(n--) { char a[66]={0}; gets(a);原创 2017-11-08 21:38:38 · 408 阅读 · 0 评论 -
田忌赛马
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=1052 代码:#include #include using namespace std; int main() { int n; while(~scanf("%d",&n)) { if(n==0) return 0; i原创 2017-11-11 14:31:32 · 310 阅读 · 0 评论 -
H : 没错,就让你做A+B
题目地址:http://oj.nyist.me/OJ/contest_problem.php?cid=1036&pid=7 题目描述 什么?听说你把上一道A+B做出来了!这么厉害的吗,那我就再出一道A+B的题考考你! 现在给你一个A和一个B,输出A+B的值。但是为了增加难度,这个式子你要用图形表示,'0'到'9'的表示如下图所示(还有'+','-','='符号) ####原创 2017-11-13 21:22:37 · 286 阅读 · 0 评论 -
括号配对问题
题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=2 括号配对问题 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述现在,有一行括号序列,请你检查这行括号是否配对。 输入第一行输入一个数N(0 输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输原创 2017-11-14 13:26:31 · 195 阅读 · 0 评论 -
一种排序
题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=8 一种排序 时间限制:3000 ms | 内存限制:65535 KB 难度:3 描述现在有很多长方形,每一个长方形都有一个编号,这个编号可以重复;还知道这个长方形的宽和长,编号、长、宽都是整数;现在要求按照一下方式排序(默认排序规则都是从小到大)原创 2017-11-15 20:45:49 · 259 阅读 · 0 评论 -
king VS king
题目链接 king VS king 时间限制:3000 ms | 内存限制:65535 KB 难度:1 描述 啊,从前有两个国家X和Y。两国都是兵强马壮,国王更是威猛无比。但是两个国王同时看上了一个美貌的女子,由于两个国王都深爱这名女子,都不想放弃,由于两名国王都是仁爱,害怕劳民伤财不想打仗,于是便有了个决定,决定分别派出 n 个人 来进行比赛ACM刷题; 国王们都深知原创 2018-01-16 19:47:07 · 288 阅读 · 0 评论 -
求转置矩阵问题
题目链接:点击打开链接 求转置矩阵问题 时间限制:3000 ms | 内存限制:65535 KB 难度:2 描述求一个三行三列的转置矩阵。 输入第一行一个整数n 每组测试数据是九个整型数(每个数都不大于10000),分别为矩阵的的每项; 输出每组测试数据的转置矩阵; 请在每组输出之后加一个换行 样例输入 2 1 2 3 4 5 6 7原创 2018-01-16 19:55:30 · 285 阅读 · 0 评论 -
Function Run Fun
N - Function Run FunWe all love recursion! Don't we? Consider a three-parameter recursive function w(a, b, c): if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns: 1 if a > 20 or b >...原创 2018-03-06 20:20:50 · 658 阅读 · 0 评论 -
0和5
小K手中有n张牌,每张牌上有一个一位数的数,这个字数不是0就是5。小K从这些牌在抽出任意张(不能抽0张),排成一行这样就组成了一个数。使得这个数尽可能大,而且可以被90整除。注意:1.这个数没有前导0,2.小K不需要使用所有的牌。Input每个测试数据输入共2行。 第一行给出一个n,表示n张牌。(1<=n<=1000) 第二行给出n个整数a00,a11,a22,…,an−1n−1 (a...原创 2018-04-03 22:27:14 · 490 阅读 · 0 评论 -
hdu 1018 Big Number
Problem DescriptionIn many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are gi...原创 2018-05-18 09:02:25 · 185 阅读 · 0 评论