题解列表

筛选

简单的hellow world程序

摘要:解题思路:直接输出非常简单注意事项:不要忘记打星号参考代码:#include<iostream>using namespace std;int main(){    cout<<"**********……

这一题倒是比前一道简单

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

1151简单的解法(C)

摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。参考代码:#include<stdio.h>int main(){ int a,i,c=1;//定义,注意c要初始化。  scanf……

1981简单的解法(C)

摘要:解题思路:如下注意事项:如果复制,请复制过后检查,我提交时是正确的。参考代码:#include<stdio.h>int main(){ int M,i,N;//定义  scanf("%d%d",&M,……

密码(C语言)

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

入门级的莫队,时间复杂度O(n√n)

摘要:解题思路:入门级的莫队,不会的可以看看这篇莫队入门文章:https://www.cnblogs.com/WAMonster/p/10118934.html注意事项:参考代码:#include<bits……

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

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

个人思路,随便看看吧

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

题解 1347: 八皇后(c++)

摘要:```cpp #include using namespace std; const int N = 20; int a[N],n,ans = 0; bool tp[3][2*N]; ……