一二三四五 上山打老虎

上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 链接:http://118.190.20.162/view.page?gpid=T80 代码: #include<bits/stdc++.h> using namespace std; int main (){ ios::sync_with_stdio(false); int r,y,g,n; ci 阅读全文
posted @ 2021-03-19 21:43 黒川川 阅读(26) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T89 坑点:如果中位数不为整数则四舍五入保留一位小数。 代码: #include<bits/stdc++.h> using namespace std; vector<int >a; int main (){ io 阅读全文
posted @ 2021-03-16 22:26 黒川川 阅读(57) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T94 思路:模拟,以后模拟题中整数型变量最好定义为long long类型 代码: #include<bits/stdc++.h> using namespace std; int main (){ int n,m; 阅读全文
posted @ 2021-03-16 15:55 黒川川 阅读(42) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/submitlist.page?gpid=T99 代码 #include<bits/stdc++.h> using namespace std; int dx[]={0,-1,1,0}; int dy[]={-1,0,0,1}; int dxp[ 阅读全文
posted @ 2021-03-16 12:37 黒川川 阅读(50) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T100 思路:两个临时标记,一个用来记录当前应该报的数,一个用来记录报出的数的个数。 代码: #include<bits/stdc++.h> using namespace std; int a[5]; bool 阅读全文
posted @ 2021-03-16 12:12 黒川川 阅读(77) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T105 坑点:惩罚爆int 要用long long 代码: #include<bits/stdc++.h> using namespace std; struct node{ int x,y; node(int _ 阅读全文
posted @ 2021-03-16 09:44 黒川川 阅读(145) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T104 思路: 代码: #include<bits/stdc++.h> using namespace std; map<int,int>mp; int main (){ int n,a,b,l,r; cin>>n 阅读全文
posted @ 2021-03-16 09:42 黒川川 阅读(110) 评论(0) 推荐(0)
摘要: 链接:http://118.190.20.162/view.page?gpid=T122 思路:发现计算规律,得到选每个y值的准确率计算公式,按照y值从小到大进行排序,依次计算选最大y。 坑点:对于两个y值相同的情况要特判考虑。 代码: #include<bits/stdc++.h> using n 阅读全文
posted @ 2021-03-14 20:18 黒川川 阅读(202) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T123 思路:n个w和score相乘后与0取最大值输出即可 代码: #include<iostream> using namespace std; int main (){ int n,l,r,ans=0; cin 阅读全文
posted @ 2021-03-14 20:15 黒川川 阅读(88) 评论(0) 推荐(0)
摘要: 题目链接:https://pintia.cn/problem-sets/1336189424478273536/problems/1336189514299293699 思路:大模拟 或者dfs做 dfs做的博客转载链接:https://blog.csdn.net/qq_52661062/artic 阅读全文
posted @ 2021-03-12 19:54 黒川川 阅读(75) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页