题解列表

筛选

思路简单,可以参考参考。

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int i,j,k,n,x,y,a[39][39]; ……

这一题倒是比前一道简单

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h>  main(){   int* p,i=0,exce=0,quil=0,unq=0;   p ……

密码(C语言)

摘要:解题思路:注意事项:比较简单,没什么好主意的参考代码:#include<stdio.h>#include<string.h>#include <ctype.h>#include<math.h>int ……

编写题解 1121: C语言训练-8除不尽的数(笨办法)

摘要:根据题目要求,设置好判断条件(if语句),然后使用for循环(循环体中未设置判断条件),从大到小取数,代入进去尝试,直到遇到符合所有条件的数,使用break终止跳出循环,并且输出。 ```c //……

个人思路,随便看看吧

摘要:解题思路:学会列表的相关操作很重要注意事项:参考代码:def fun(n):    l1 = [n]    while n != 1:        if n % 2 == 0:           ……