信息学奥赛一本通T1236-区间合并 差分 摘要:解题思路: 一道差分的模板题。将区间的两端标记,找最小端和最大端,遍历这一段区间,如果没有被标记直接输出no,否则输出该区间。注意事项:参考代码:#include<bits/stdc++.h> …… 题解列表 2021年05月20日 0 点赞 0 评论 698 浏览 评分:9.3
暴力解法------------ 摘要:解题思路:暴力解法先去重在排序注意事项:用Set的特性没有重复数字参考代码:----package ciphers;import java.util.*;public class TEST { …… 题解列表 2021年05月20日 0 点赞 2 评论 233 浏览 评分:8.0
超级简单,思维清晰,新手来看,嘀嘀嘀 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>//关键:学会如何计算星期几#include<algorithm>//学会距离某天差多少天using…… 题解列表 2021年05月20日 0 点赞 0 评论 255 浏览 评分:0.0
分3部分解决,思维清晰,新手来看,嘀嘀嘀 摘要:解题思路:别看字多,思维简单,干就完了注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace s…… 题解列表 2021年05月20日 0 点赞 0 评论 286 浏览 评分:9.9
[编程入门]自定义函数之数字分离-Java-超笨方法-4个syso : ) 摘要:解题思路:注意事项:参考代码:Scanner in = new Scanner(System.in); int a = in.nextInt(); System.out.print(a/1000+…… 题解列表 2021年05月19日 0 点赞 0 评论 505 浏览 评分:9.9
stl全排列函数next_permuttion(); 摘要:解题思路:用next_permuttion()函数就好,do---while来做注意事项:当输入的数为10时,用cin、cout输入输出的话运行可能会超限,所以全程用scanf和pentf输入输出参考…… 题解列表 2021年05月19日 0 点赞 0 评论 447 浏览 评分:9.9
平凡の解法 摘要:# 数组的初次使用 ### 这个题目可以很好的体现C语言在数组的读入中的优势(~~至少在这点上面比python3.x要好的多~~) ## 解题关键 考虑数组的输入方式,在一般的情况下被分为有限输…… 题解列表 2021年05月19日 0 点赞 1 评论 1354 浏览 评分:9.8
2145: 信息学奥赛一本通T1280-滑雪 摘要:```c #include int dp(int x,int y); int maxd(int a,int b); int m,n,map[105][105]={0},f[105][105]=…… 题解列表 2021年05月19日 0 点赞 2 评论 358 浏览 评分:8.7
[编程入门]自定义函数之字符串反转-Java-咸鱼 摘要:解题思路:使用StringBuffer方法反转字符串.注意事项:参考代码:public static void main(String[] args) { Scanner in = new Scan…… 题解列表 2021年05月19日 0 点赞 0 评论 249 浏览 评分:9.9