[信息学奥赛一本通T1678-Addition Chains]迭代加深?打表! 摘要:# 迭代加深 ###### tip:不知道为啥会TLE一个点,打表过了 ```cpp #include #define ULL unsigned long long #define LL…… 题解列表 2024年09月12日 0 点赞 2 评论 394 浏览 评分:9.9
dfs简单易懂--来自蒟蒻的题解 摘要:# 欢迎各位赏脸来看本蒟蒻的题解 ~~保姆级教程~~(不是) 一眼dfs 但是可能会遇到重复加的问题 导致答案错误 ##### 其实只要 思考一下dfs递归的本质 就会发现 只需要加一个 特判就可…… 题解列表 2024年09月12日 0 点赞 2 评论 776 浏览 评分:6.8
利用归并排序求逆序对--模版题 摘要:# 归并排序求逆序对 时间复杂O(nlog(n)) 第一次在这个平台发题解 本蒟蒻有点紧张哈哈哈 这是一个模版 背住就行 需要注意几个地方 递归时的左右边界需要注意不要越界,。 详细看代…… 题解列表 2024年09月12日 1 点赞 3 评论 528 浏览 评分:10.0
猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,s=1; cin>>n; for(int i=1…… 题解列表 2024年09月10日 0 点赞 0 评论 374 浏览 评分:0.0
巧用布尔型 摘要:解题思路::很简单,只需要设置一个布尔型变量即可,在自定义函数中,在2~n-1中遍历,凡是为整除的更新布尔型变量并返回即可注意事项:参考代码:#include<iostream>using names…… 题解列表 2024年09月10日 1 点赞 0 评论 459 浏览 评分:0.0
2943: Vigenère密码 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <string.h> #include <iostream> us…… 题解列表 2024年09月07日 0 点赞 0 评论 245 浏览 评分:9.9
题解 2759: 打印字符 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; putchar(a); …… 题解列表 2024年09月07日 0 点赞 0 评论 295 浏览 评分:9.9
题解 2758: 打印ASCII码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char a; cin>>a; cout<<(int)a<…… 题解列表 2024年09月07日 0 点赞 0 评论 354 浏览 评分:9.9
题解 2754: 其他基本数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ bool a; char b; cout<<sizeof(…… 题解列表 2024年09月07日 1 点赞 0 评论 516 浏览 评分:9.9
题解 2752: 整型数据类型存储空间大小 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; short b; cout<<sizeof(…… 题解列表 2024年09月07日 0 点赞 0 评论 749 浏览 评分:9.9