一二三四五 上山打老虎

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