题解列表
Pascal三角--C语言
摘要:解题思路:注意事项:参考代码:int main(){ int PASCAL[100][100] = { 0 }; int i, j,Length_space,row; scanf("%d", &row……
不用分类讨论c语言解决大神老白
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int n,i,a[100],s; while((scanf("%d",&n……
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方
摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有……
20221123字符逆序
摘要:解题思路:注意事项:字符串长度为l,则旧/新字符串下标最大均为l-1;参考代码:#include <stdio.h>#include <string.h>int main(){ int i,j……
C语言训练-阶乘和数*
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<math.h>using namespace std;int main(){ for(int i=……
蓝桥杯算法训练-2的次幂表示-主要记录一下自己花了很长时间的复杂方法
摘要:解题思路:注意事项:参考代码:from math import *# 生成正常的列表def func1(m): list1=[] while 1: a=int(log(m,2……
一个采购唯一会的才方法
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char ch[100000]; fgets(ch,99999,……
20221124The 3n + 1 problem
摘要:解题思路:注意事项:输入&a,&b不确定其大小参考代码:#include <stdio.h>long len(long n){ long c=1; while(n!=1) { if (n%2==0……