摘要:
题目链接: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)

浙公网安备 33010602011771号