The 3n + 1 problem(水题) 摘要:```c #include int fun(int n){ int cnt=0; do{ if(n%2==0){ n/=2; cnt++; } else…… 题解列表 2023年01月12日 0 点赞 0 评论 413 浏览 评分:9.9
输出最高分数的学生姓名 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student{ int score; char name[100];}a[1000];int main(){…… 题解列表 2023年01月12日 0 点赞 0 评论 336 浏览 评分:0.0
1074基础解法(Python) 摘要:注意事项:sys.stdin会读取到'\n'换行符参考代码:import sysfor line in sys.stdin : if int(line) == 0 : …… 题解列表 2023年01月12日 0 点赞 0 评论 490 浏览 评分:9.9
选择排序思想解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<windows.h>int main(){ int l,m,min; …… 题解列表 2023年01月12日 0 点赞 0 评论 365 浏览 评分:0.0
快速排序python解法 摘要:参考代码:def quick_sort(q, l, r): if l>=r: return i, j = l-1, r+1 x = q[(l+r)//2] while i < j: …… 题解列表 2023年01月12日 0 点赞 0 评论 446 浏览 评分:9.9
2910: 找最大数序列 摘要:```cpp #include using namespace std; int main() { int n,i,x,a[31],mark=0,max=-1; bool …… 题解列表 2023年01月12日 0 点赞 0 评论 466 浏览 评分:9.9
蛇行矩阵(水题) 摘要:```c #include int main(){ int n,i,j,k=1,l,h=2; scanf("%d",&n); for(i=0;i…… 题解列表 2023年01月12日 0 点赞 0 评论 475 浏览 评分:9.9
FJ的字符串(解题清晰) 摘要:解题思路:FJ在沙盘上写了这样一些字符串:A1 = “A”A2 = “ABA”A3 = “ABACABA”A4 = “ABACABADABACABA”我们可以看出字符串的规律为:A1 …… 题解列表 2023年01月12日 0 点赞 0 评论 362 浏览 评分:9.9
2917: 奇数单增序列 摘要:```cpp #include using namespace std; int main() { int n,a[501],k; cin>>n; for(int…… 题解列表 2023年01月12日 0 点赞 0 评论 479 浏览 评分:9.9
1624: 蓝桥杯算法训练VIP-完数 摘要:```cpp #include using namespace std; void f(int n) { int sum=0; for(int i=1;i…… 题解列表 2023年01月12日 0 点赞 0 评论 398 浏览 评分:9.9