2113: 信息学奥赛一本通T1309-回文数 摘要:解题思路:一开始想用字符数组做题,可是在十六进制进位的时候太过麻烦,就使用int型数组了,如果只是判断回文的话,a,b,c和它们具体代表的10,11,12并没有不同。不过这样又陷入了新的麻烦,字符数组…… 题解列表 2022年02月03日 0 点赞 0 评论 667 浏览 评分:9.9
python-四平方和 摘要:解题思路:注意事项:参考代码:from math import sqrt def f(n): for i in range(int(sqrt(n))+1): …… 题解列表 2022年02月03日 0 点赞 0 评论 556 浏览 评分:0.0
最短代码解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n; scanf("%d",&n); a = 24690; printf("…… 题解列表 2022年02月03日 0 点赞 0 评论 319 浏览 评分:0.0
Hifipsysta-1895-蓝桥杯算法提高VIP-队列操作(C++代码)基于STL的队列实现 摘要:注意事项: 队列为空后要结束循环。 ```cpp #include #include using namespace std; int main(){ queue q; …… 题解列表 2022年02月03日 0 点赞 0 评论 372 浏览 评分:9.9
二重循环求N以内素数 摘要:解题思路: 两层for循环第一层for循环(i为变量)遍历N以内所有整数第二层for循环(j为变量)遍历2~(N-1)内所有整数,若i%j==0,即可说明此时的i不为素数可引入int k=1,…… 题解列表 2022年02月03日 0 点赞 0 评论 494 浏览 评分:9.9
报数问题(C++)(STL vector求解) 摘要:解题思路:个人认为解这种题的思路就是首先定义一个不定长数组vector,通过输入的总人数,利用for循环用vector存储每个人的编号(1~n)。然后接下来的while循环就是模拟这个报数的过程,题意…… 题解列表 2022年02月03日 0 点赞 2 评论 689 浏览 评分:9.9
八种排序算法(python实现) 摘要:""" 以下是八种升序排序算法模板 分为初级排序算法和高级排序算法 初级排序算法:插入排序,选择排序,冒泡排序 高级排序算法:归并排序,快速排序,希尔排序,堆排序,桶排序 时间复杂度: …… 题解列表 2022年02月03日 0 点赞 0 评论 894 浏览 评分:9.9
[编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; int main(){ int n,k,i,m; cin>>n; int a[n…… 题解列表 2022年02月03日 0 点赞 0 评论 287 浏览 评分:0.0
优质题解 Hifipsysta-1096-蛇行矩阵(C++代码)超详细的双递归数列解题步骤 摘要:### 解题思路: #### 1. 总结出每一行的规律 ##### 首先看第0行: $$a_0=1$$ $$a_1=a_0+2=1+2=3$$ $$a_2=a_1+3=3+3=6$$ $$…… 题解列表 2022年02月03日 0 点赞 5 评论 1504 浏览 评分:8.9
Hifipsysta-1139题-C语言训练-求素数问题(C++代码) 摘要:```cpp #include using namespace std; bool is_prime(int n){ for(int i=2;i>n; for(int…… 题解列表 2022年02月03日 0 点赞 0 评论 310 浏览 评分:0.0