1069 微博转发抽奖 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805265159798784 1、使用vector来保存输入的用户名。 2、使用map来进行筛选,记录用户是否已经中奖。 1 #inclu ...
分类:
其他好文 时间:
2020-01-19 00:24:46
阅读次数:
125
1072 开学寄语 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805263964422144 第一次:格式错误 第二次:AC 两种方法: 1 #include <iostream> 2 #include < ...
分类:
其他好文 时间:
2020-01-18 21:13:11
阅读次数:
78
1013 数素数 (20分) 题目地址:https://pintia.cn/problem sets/994805260223102976/problems/994805309963354112 令$P_i$ 表示第 i 个素数。现任给两个正整数 M≤N≤$10^4$,请输出 $P_M$ 到 $P_ ...
分类:
其他好文 时间:
2020-01-18 21:08:52
阅读次数:
86
nx.compose Return a new graph of G composed with H. Composition is the simple union of the node sets and edge sets. ref "link" ...
分类:
其他好文 时间:
2020-01-18 10:47:15
阅读次数:
89
Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into sets of k consecutive numbersReturn Tru ...
分类:
其他好文 时间:
2020-01-18 10:37:01
阅读次数:
92
1012 数字分类 (20分) 题目地址:https://pintia.cn/problem sets/994805260223102976/problems/994805311146147840 给定一系列正整数,请按要求对数字进行分类,并输出以下 5 个数字: $A_1$ = 能被 5 整除的数 ...
分类:
其他好文 时间:
2020-01-17 23:24:06
阅读次数:
95
1074 宇宙无敌加法器 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805263297527808 第一次提交测试五没过:如果和为0,去0的时候保证要留下一个0(测试点5) 第二次AC: 1 #includ ...
分类:
其他好文 时间:
2020-01-17 23:23:06
阅读次数:
75
https://pintia.cn/problem-sets/12/problems/348 1 struct complex multiply(struct complex x, struct complex y) 2 { 3 struct complex ret; 4 5 ret.real = ...
分类:
其他好文 时间:
2020-01-17 13:55:22
阅读次数:
117
https://pintia.cn/problem-sets/12/problems/349 1 int set_grade(struct student *p, int n) 2 { 3 int i, count; 4 5 count = 0; 6 for (i = 0; i < n; i++) ...
分类:
其他好文 时间:
2020-01-17 13:13:39
阅读次数:
256
Redis是一款开源的、高性能的键-值存储(key-value store)。它常被称作是一款数据结构服务器(data structure server)。Redis的键值可以包括字符串(strings)、哈希(hashes)、列表(lists)、集合(sets)和 有序集合(sorted sets ...
分类:
其他好文 时间:
2020-01-17 11:48:44
阅读次数:
59