上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 87 下一页
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805072641245184 给定一个带整数键值的链表 L,你需要把其中绝对值重复的键值结点删掉。即对每个键值 K,只有第一个绝对值等于 K 的结点被保留。同时,所有被删除的 阅读全文
posted @ 2019-03-06 15:29 _Zlrrr 阅读(217) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805057860517888 给定一个单链表 L​1​​→L​2​​→⋯→L​n−1​​→L​n​​,请编写程序将链表重新排列为 L​n​​→L​1​​→L​n−1​​→L​ 阅读全文
posted @ 2019-03-06 15:28 _Zlrrr 阅读(220) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805073643683840 作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援队数量和每一条连 阅读全文
posted @ 2019-03-06 11:53 _Zlrrr 阅读(296) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805046380707840/problems/994805107638517760 下面是新浪微博上曾经很火的一张图: 一时间网上一片求救声,急问这个怎么破。其实这段代码很简单,index数组就是arr数组的下标,index[0 阅读全文
posted @ 2019-03-06 09:54 _Zlrrr 阅读(241) 评论(0) 推荐(0)
摘要: #include <bits/stdc++.h> using namespace std; #define LL long long const int mod = 1e9 + 7; const int maxn = 1e5 + 10; int N; int num[maxn]; LL dp[max 阅读全文
posted @ 2019-03-05 20:28 _Zlrrr 阅读(133) 评论(0) 推荐(0)
摘要: http://codeforces.com/contest/1118 A. Water Buying #include <bits/stdc++.h> using namespace std; int T; int main() { scanf("%d", &T); while(T --) { lo 阅读全文
posted @ 2019-03-05 16:29 _Zlrrr 阅读(190) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/contest/371#question A.小睿睿的等式 #include <bits/stdc++.h> using namespace std; int N, K, M; int num[11] = {6, 2, 5, 5, 4, 5, 阅读全文
posted @ 2019-03-05 10:07 _Zlrrr 阅读(100) 评论(0) 推荐(0)
摘要: http://lx.lanqiao.cn/problem.page?gpid=T46 问题描述 153是一个非常特殊的数,它等于它的每位数字的立方和,即153=1*1*1+5*5*5+3*3*3。编程求所有满足这种条件的三位十进制数。 输出格式 按从小到大的顺序输出满足条件的三位十进制数,每个数占一 阅读全文
posted @ 2019-03-03 22:03 _Zlrrr 阅读(228) 评论(0) 推荐(0)
摘要: http://lx.lanqiao.cn/problem.page?gpid=T52 问题描述 给定一个长度为n的数列,将这个数列按从小到大的顺序排列。1<=n<=200 输入格式 第一行为一个整数n。 第二行包含n个整数,为待排序的数,每个整数的绝对值小于10000。 输出格式 输出一行,按从小到 阅读全文
posted @ 2019-03-03 21:30 _Zlrrr 阅读(574) 评论(0) 推荐(0)
摘要: http://lx.lanqiao.cn/problem.page?gpid=T47 问题描述 1221是一个非常特殊的数,它从左边读和从右边读是一样的,编程求所有这样的四位十进制数。 输出格式 按从小到大的顺序输出满足条件的四位十进制数。 代码: 阅读全文
posted @ 2019-03-03 21:09 _Zlrrr 阅读(245) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 87 下一页