题解 模拟。 题目有三种状态。 第一种为题目得到了一定的分数( >= 0); 第二种为题目提交过但是没有通过编译(代码中状态为 -2 ,输出对应 0 ); 第三种题目根本就没提交过(代码中状态为 -1 ,输出对应 ‘-’ )。 考生只要至少有一道题目满足第一种情况,即可将这位考生的信息输出出来。 代 ...
分类:
其他好文 时间:
2020-01-22 01:11:31
阅读次数:
98
题解 贪心。 若 0 的不在它的位置,那么 0 占的那个元素的位置,就和那个元素交换。 若 0 在它的位置,找一个没有归位的元素与 0 交换。 代码 #include<bits/stdc++.h> using namespace std; int arr[100005]; int main() { ...
分类:
其他好文 时间:
2020-01-21 19:57:19
阅读次数:
52
1、Jmeter上传文件 首先确认你的文件名称,参数名称,MIME类型,这些可以从接口文档里面获取,或者直接在页面抓包然后从请求头里面查看。 我这里是通过F12获取的,看个人喜好。 还有人说需要设置Advanced里面的配置,客户端实现选择java类型,切记(我这里没有配置是可以的,如果所有设置完了 ...
分类:
Web程序 时间:
2020-01-21 14:46:00
阅读次数:
102
题解 模拟水题。 代码 #include<bits/stdc++.h> using namespace std; struct node { string name; int final_rank,loc_num,loc_rank,grade; node(string name,int loc_nu ...
分类:
其他好文 时间:
2020-01-21 13:31:06
阅读次数:
63
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the ...
分类:
其他好文 时间:
2020-01-21 13:21:50
阅读次数:
88
题解 模拟。注意美元和美分的转换。如果一个人没有完整的消费记录什么都别输出 (呕~~) :)。 代码 #include<bits/stdc++.h> using namespace std; struct node { string time,flag,other_time; int cost_se ...
分类:
其他好文 时间:
2020-01-21 00:53:08
阅读次数:
84
问题描述: 最近打开百度首页,突然发现有了广告卡片推荐,如下情况所示: 解决方案: 想要屏蔽显示的这个,不想被强制推广 想到可以写个简单的油猴脚本,由于js只是会一点点,所以代码也比较low,不过可以达到自己想要的效果 代码: 最后效果如下: ...
分类:
其他好文 时间:
2020-01-21 00:35:53
阅读次数:
161
1020 Tree Traversals (25分) Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequen ...
分类:
其他好文 时间:
2020-01-20 20:53:02
阅读次数:
76
The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed ...
分类:
其他好文 时间:
2020-01-20 09:57:49
阅读次数:
93
Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu ...
分类:
其他好文 时间:
2020-01-20 09:30:50
阅读次数:
92