dfs模板题(排列数字) 摘要:# 题目 ## 排列数字 给定一个整数 n,将数字 1∼n排成一排,将会有很多种排列方法。 现在,请你按照字典序将所有的排列方法输出。 ### 输入格式 共一行,包含一个整数 n。1= 1 …… 文章列表 2023年02月04日 0 点赞 0 评论 258 浏览 评分:9.9
区间合并(模板)(c++) 摘要:# 题目 给定n个区间 [li,ri],要求合并所有有交集的区间。 注意如果在端点处相交,也算有交集。 输出合并完成后的区间个数。 例如[1,3]和[2,6]可以合并为一个区间[1,6]。 …… 文章列表 2023年02月03日 0 点赞 2 评论 193 浏览 评分:9.3
printf控制小数点输出格式(C++) 摘要:printf("%.nlf",m);*n是小数点后几位,m为控制小数点的对象…… 文章列表 2023年02月03日 0 点赞 0 评论 204 浏览 评分:9.9
买房子(c++写法) 摘要:#include<iostream>#include<iomanip>using namespace std;int main(){ int n,k; cin>>n>>k; whil…… 文章列表 2023年02月02日 0 点赞 0 评论 215 浏览 评分:9.9
不会写的看我。的1809 摘要:#include<iostream>#include<iomanip>using namespace std;int main(){ double a; cin>>a; cout<<fixed<<se…… 文章列表 2023年02月01日 0 点赞 0 评论 181 浏览 评分:9.9
jpackage的使用方法(记录一下) 摘要: 示例用法: -------------- 生成适合主机系统的应用程序包: 对于模块化应用程序: jpackage -n name -p mo…… 文章列表 2023年01月31日 0 点赞 1 评论 415 浏览 评分:9.9
使用java爬取本站离线题库 摘要:这几天刚接触爬虫,好奇看了下本站的前端代码,发现是静态网页,直接使用jsoup就可以。先在pom导入依赖<dependency> <groupId>org.jsoup</groupId> …… 文章列表 2023年01月29日 0 点赞 0 评论 392 浏览 评分:9.9
使用java爬取英雄联盟原皮肤 摘要://记录一下,防止重写 import com.gargoylesoftware.htmlunit.NicelyResynchronizingAjaxController; import com…… 文章列表 2023年01月28日 0 点赞 0 评论 282 浏览 评分:9.9
笔记:题目1046 摘要:比较复杂的解法: ```cpp #include using namespace std; int n; void fun(int a[],int m) { int b[m],c[n-…… 文章列表 2023年01月21日 0 点赞 0 评论 236 浏览 评分:0.0
C++字符串逆序 摘要:题目描述:将一个字符串str的内容颠倒过来,并输出。str的长度不超过100个字符。输入格式:输入包括一行。 第一行输入的字符串。输出格式:输出转换好的逆序字符串。样例输入:I am a studen…… 文章列表 2023年01月19日 0 点赞 0 评论 193 浏览 评分:0.0