题解列表

筛选

字符串p型编码

摘要:解题思路:注意事项:参考代码:myStr=input().strip()myStr1=""i=1for t in range(len(myStr)-1):    if myStr[t+1]==mySt……

来个C++的题解

摘要:解题思路:以先序遍历为基础,找到root后在中序遍历中找root的位置并设置好范围len,变换pre和in数组的head指针参考代码:#include<bits/stdc++.h>#define re……

不能没落的strcmp和strcpy!!!

解题思路:strcmp函数:若返回值为0,说明两个字符串相等。若返回值小于0,说明str1小于str2。若返回值大于0,说明str1大于str2。作用:用于比较两个字符串。函数原型:intstrcmp(constchar*str1,constchar*str2);返回值:返回一个整数,表示比较的结果。

题解 2913: 整数去重

#includeusingnamespacestd;inta[20000],b[20000];intn,m,sum;intmain(){cin>>n;for(inti=0;i>m;a[m]++;if(a[m]==1){cout

双循环+boolean

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……

Hello World (c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("Hello Wo……

第一个HelloWorld程序(c语言代码)

解题思路:输出HelloWorld,我们直接调用注意事项:1:*号的数量必须要一致,不能多也不能少。2:每进行一次printf,需要进行一次换行(\n)。3:HelloWorld后面有一个!这个!不能掉,不然也是没有分。参考代码:#includeintmain(){printf("**********

3024: 判断整除

摘要:解题思路: 搜索回溯计算数字序列,注意事项: 在递归之后, 恢复res值以做下次计算参考代码:#include<iostream> #include<algorithm> using namesp……