摘要:
题解 贪心。 若 0 的不在它的位置,那么 0 占的那个元素的位置,就和那个元素交换。 若 0 在它的位置,找一个没有归位的元素与 0 交换。 代码 #include<bits/stdc++.h> using namespace std; int arr[100005]; int main() { 阅读全文
posted @ 2020-01-21 18:11
Vivid-BinGo
阅读(148)
评论(0)
推荐(0)
摘要:
题解 模拟。记得把早于8:00达到的人的等待时间加上。 代码 #include<bits/stdc++.h> using namespace std; struct node { int time,get_time,p_time; node(int c,int a,int b) { time=c; 阅读全文
posted @ 2020-01-21 14:03
Vivid-BinGo
阅读(148)
评论(0)
推荐(0)
摘要:
题解 模拟水题。 代码 #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 阅读全文
posted @ 2020-01-21 12:01
Vivid-BinGo
阅读(90)
评论(0)
推荐(0)
摘要:
题解 模拟。先将原始字符串处理 [ op(string &s) ] 一下就好。 代码 #include<bits/stdc++.h> using namespace std; char ch[15][5]={{"ling"},{"yi"},{"er"},{"san"},{"si"},{"wu"},{ 阅读全文
posted @ 2020-01-21 10:42
Vivid-BinGo
阅读(105)
评论(0)
推荐(0)