一二三四五 上山打老虎

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页
摘要: 链接:http://118.190.20.162/view.page?gpid=T57 代码: #include<bits/stdc++.h> using namespace std; int main (){ int n,k; cin>>n>>k; int ans=0,num,res=0; for 阅读全文
posted @ 2021-03-23 20:50 黒川川 阅读(33) 评论(0) 推荐(0)
摘要: 链接:http://118.190.20.162/view.page?gpid=T62 坑点:给出的w,s,c中c是上课的时长,不是上课结束时间 代码: #include<bits/stdc++.h> using namespace std; const int maxn=(int)2e4+5; i 阅读全文
posted @ 2021-03-23 20:45 黒川川 阅读(59) 评论(0) 推荐(0)
摘要: 链接:http://118.190.20.162/view.page?gpid=T63 代码: #include<bits/stdc++.h> using namespace std; int main (){ int num; cin>>num; num/=10; int a=num/5; int 阅读全文
posted @ 2021-03-22 21:23 黒川川 阅读(23) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T67 思路:模拟,可以用过队列来模拟环 代码: #include<bits/stdc++.h> using namespace std; queue<int> qu; int n,k; bool check(int 阅读全文
posted @ 2021-03-22 15:31 黒川川 阅读(31) 评论(0) 推荐(0)
摘要: 题目链接:http://118.190.20.162/view.page?gpid=T68 坑点:最小差值初始化要定义大点,==以后最大值初始化为INT_MIN,最小值定义为INT_MAX。 代码: #include<bits/stdc++.h> using namespace std; vecto 阅读全文
posted @ 2021-03-22 15:23 黒川川 阅读(50) 评论(0) 推荐(0)
摘要: 链接: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)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页