上一页 1 ··· 13 14 15 16 17
摘要: 题目知识点:全排列加指针划分数组。 链接:https://www.luogu.com.cn/problem/P8599 #include<iostream> #include<vector> #include<algorithm> #include<math.h> #include<sstream> 阅读全文
posted @ 2024-03-10 19:12 WHUStar 阅读(17) 评论(0) 推荐(0)
摘要: https://www.luogu.com.cn/problem/P3805 板子题 比较模式的代码(书上整理): #include<iostream> #include<vector> #include<algorithm> #include<math.h> #include<sstream> # 阅读全文
posted @ 2024-03-10 17:17 WHUStar 阅读(23) 评论(0) 推荐(0)
摘要: 一、cin>> 用法1:输入一个数字或字符 #include <iostream> using namespace std; int main () { int a,b; cin>>a>>b; cout<<a+b<<endl; } 用法2:接收一个字符串,遇“空格”、“TAB”、“回车”就结束 #i 阅读全文
posted @ 2024-03-08 19:37 WHUStar 阅读(209) 评论(0) 推荐(0)
摘要: 网站:https://www.luogu.com.cn/problem/P8630 代码如下: 主要是用了map的思想 #include<iostream> #include<vector> #include<algorithm> #include<math.h> #include<string> 阅读全文
posted @ 2024-03-08 17:52 WHUStar 阅读(28) 评论(0) 推荐(0)
摘要: #include<iostream> #include<vector> #include<algorithm> #include<math.h> #include<string> #include<string.h> #include<iomanip> #include<map> #include< 阅读全文
posted @ 2024-03-07 22:04 WHUStar 阅读(18) 评论(0) 推荐(0)
摘要: 备赛蓝桥杯和icpc的习题: 一道并查集的题目 > #include<iostream> > #include<vector> > #include<algorithm> > #include<math.h> > #include<string> > #include<string.h> > #in 阅读全文
posted @ 2024-03-07 20:49 WHUStar 阅读(53) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17