随笔分类 -  洛谷

摘要:#include<iostream> #include<list> using namespace std; bool vis[100002]; //用来判断x同学是否还在队列中 list<int> li; //存储学生序号 list<int>::iterator pos[100002]; //迭代 阅读全文
posted @ 2022-05-16 16:31 半喜 阅读(40) 评论(0) 推荐(0)
摘要:#include<iostream> #include<set> using namespace std; int main() { set<int> s; set<int>::iterator it; int a[101],n,t; cin>>n;s.insert(n);n=n+1; while( 阅读全文
posted @ 2022-05-15 13:06 半喜 阅读(52) 评论(0) 推荐(0)
摘要:#include<cstdio> #include<algorithm> #include<cstring> #include<iostream> using namespace std; int cmp(string s1,string s2){ return s1+s2>s2+s1; } int 阅读全文
posted @ 2022-04-22 16:51 半喜 阅读(28) 评论(0) 推荐(0)