- 博客(9)
- 收藏
- 关注
原创 (校园网)寝室笔记本 如何 ping通 实验室工作站?
寝室笔记本在IP63.com上显示的ip地址是58.247.22.2xx,实验室工作站显示的ip是58.247.22.2xx 通过windows终端 互相 ping对方,互相都显示 “TTL传输中过期”,ping不通。 网上大神有解决方案吗? ...
2019-05-16 22:04:41
1409
原创 PTA-乙级-1090 危险品装箱
1090 危险品装箱 原题链接[1090 危险品装箱](https://pintia.cn/problem-sets/994805260223102976/problems/1038429484026175488)思路:1. 用一个struct数组表示不相容的清单,用一个字符串数组表示待检查的货物;2. 对字符串数组中的元素(即货物)在strct数组中遍历,如果发现相同的元素,再对字符串中剩下的元...
2018-12-08 18:18:51
1004
原创 1003 我要通过!请大佬帮忙!!! 感谢
1003 我要通过!PAT乙级, [原题链接](https://pintia.cn/problem-sets/994805260223102976/problems/994805323154440192)运行测试结果,第5个测点过不去代码C++请大佬帮忙!!! 感谢 PAT乙级, 原题链接 运行测试结果,第5个测点过不去 代码C++ #include<iostream> #inclu...
2018-11-30 13:17:09
414
原创 1008 数组元素循环右移问题
题目 思路:用函数每次向右循环一步,如过移动m,就m次循环。 CODE: #include &lt;iostream&gt; using namespace std; void move(int[], int); int main() { int n, m; cin &gt;&gt; n &gt;&gt; m; int a[101] = { 1,2,3,4,5,6 }; for (int...
2018-11-15 17:22:55
207
原创 python字典中添加字典或者列表
如何向字典中,添加字典? 例如 d1 = {a:1, b:2} d2 = {a:11, b:22, c:3} #目标:new_d(或者是d1) =d1 + d2 = {a:[1 , 11], b:[2, 22], c:[3]} 或者:new_d = { 1: {a:1, b:2}, 2:{a:11, b:22, c:3} } ...
2018-11-11 14:21:14
32538
2
原创 字符串练习-DNA排序
解题: 1.思路:先算无序度;再排序;当无序度一样的时候,注意不要重复输出; 2.代码: #include<iostream> #include<cstring> using namespace std; //------------------------------------------------------------- int transScore(char ...
2018-10-25 20:46:23
737
原创 奇数单增序列
#1 题目来源: #2 解答: 注意输出格式 #include<iostream> using namespace std; int main() { int N = 0; int arr[500] = { 0 }; int odd[500] = { 0 }, odd2[500] = { 0 }; cin >> N; // 录入数组,并找出奇数并放置在odd数组对...
2018-10-18 16:06:11
1718
原创 第二个重复出现的整数
第二个重复出现的整数 #1 题目来源:OpenJudge #2 C++代码解决: #include<iostream> using namespace std; int main() { int m = 0; int n[10] = { 0 }, arr[10][500] = { 0 }; int i = 0, j = 0, k = 0 , time = 0; int sa...
2018-10-18 11:20:44
612
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人