题解列表
不能没落的strcmp和strcpy!!!
摘要:解题思路:strcmp函数:若返回值为0,说明两个字符串相等。若返回值小于0,说明 str1 小于 str2。若返回值大于0,说明 str1 大于 str2。作用: 用于比较两个字符串。函数原型: i……
题解 2913: 整数去重
摘要: #include
using namespace std;
int a[20000],b[20000];
int n,m,sum;
int main()……
双循环+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……
最长最短单词(用二维数组存储,把每个单词分隔开来,就好做多了)
摘要:参考代码:
```c
#include
#include
int main()
{
char a[201][101];
int k=0;
int max=0,max_index=……
第一个HelloWorld程序(c语言代码)
摘要:解题思路:输出HelloWorld,我们直接调用注意事项:1:*号的数量必须要一致,不能多也不能少。2:每进行一次printf,需要进行一次换行(\n)。3:HelloWorld后面有一个!这个!不能……
3024: 判断整除
摘要:解题思路: 搜索回溯计算数字序列,注意事项: 在递归之后, 恢复res值以做下次计算参考代码:#include<iostream>
#include<algorithm>
using namesp……
题解 2773: 计算线段长度
摘要:解题思路:注意事项:参考代码:#inalude <bitz/stdc+-.h>uerng namespace std;doqble xa,ya,xb,yb,c;int maie(){ cin>>……