摘要:
链接:http://118.190.20.162/view.page?gpid=T72 思路:初始在最左边的最终一定在最左边,通过初始位置很容易计算出看作其碰撞后是穿越对方情况的ts后最终的落点,再对所有最终点排序和初始点进行映射后输出即可。 代码: #include<bits/stdc++.h> 阅读全文
posted @ 2021-03-21 22:33
黒川川
阅读(60)
评论(0)
推荐(0)
摘要:
题目链接:http://118.190.20.162/view.page?gpid=T73 代码: #include<bits/stdc++.h> using namespace std; int a[(int)1e6+5]; int b[(int)1e6+5]; int main (){ int 阅读全文
posted @ 2021-03-21 21:55
黒川川
阅读(34)
评论(0)
推荐(0)
摘要:
链接:http://118.190.20.162/view.page?gpid=T78 思路:前缀和,区间是左闭右开的 代码: #include<bits/stdc++.h> using namespace std; int a[(int)1e6+5]; int main (){ int n; ci 阅读全文
posted @ 2021-03-21 21:48
黒川川
阅读(28)
评论(0)
推荐(0)
摘要:
链接:http://118.190.20.162/view.page?gpid=T79 代码: #include<bits/stdc++.h> using namespace std; vector<int> a,b; int main (){ int n; cin>>n; int num; for 阅读全文
posted @ 2021-03-21 20:11
黒川川
阅读(36)
评论(0)
推荐(0)
摘要:
题目链接:http://118.190.20.162/submitlist.page?gpid=T81 大模拟 代码: #include<bits/stdc++.h> using namespace std; int main (){ int n,r,g,y,k,t; cin>>r>>y>>g; l 阅读全文
posted @ 2021-03-21 17:01
黒川川
阅读(34)
评论(0)
推荐(0)

浙公网安备 33010602011771号