[编程入门]字符串正反连接-题解(C语言代码) 摘要:解题思路:str1[]输入,str2[]倒叙,str3[]链接注意事项:puts输出str3[]结尾需加'\0'参考代码:#include<stdio.h>#include<strin…… 题解列表 2021年08月20日 0 点赞 0 评论 1142 浏览 评分:9.9
斐波那契数列求和 摘要:解题思路:1.首先宏定义N作为数组长度,所输入的n需要小于等于N(N的值可以根据数据大小调整)。2.数组前两项自行赋值。3.利用for循环求斐波那契数列各项的值( a[i]=a[i-1]+a[i-2]…… 题解列表 2021年08月21日 0 点赞 0 评论 884 浏览 评分:9.9
python快速解决该问题(Python) 摘要:解题思路:整除100得到前两位数;100取余得到后两位数,再进行循环。注意事项:参考代码:n=1000while n<10000: a=n//100 b=n%100 if n==(a…… 题解列表 2021年08月21日 0 点赞 0 评论 696 浏览 评分:9.9
1040: [编程入门]实数的打印 AC代码 ```cpp#includeusingnamespacestd;intmain(){coutn;cout 题解列表 2021年08月21日 0 点赞 0 评论 1315 浏览 评分:9.9
STL函数翻转 摘要:解题思路:C++STL库函数翻转注意事项:参考代码:```#include<bits/stdc++.h>using namespace std;int main(){ vector<int> a…… 题解列表 2021年08月21日 0 点赞 0 评论 651 浏览 评分:9.9
编写题解 1128: C语言训练-排序问题<1> 摘要:解题思路:注意事项:参考代码:m=list(map(int,input().split()))for i in range(len(m)): for j in range(i+1,len(m))…… 题解列表 2021年08月22日 0 点赞 1 评论 880 浏览 评分:9.9
编辑距离-C++代码 #include#includeusingnamespacestd;intmain(){stringa,b;cin>>a>>b;intn1=a.length(),n2=b.length();intdp[n1+1][n2+1];for(inti=0;i 题解列表 2021年08月22日 0 点赞 0 评论 764 浏览 评分:9.9
Minesweeper-题解(C语言)白话文,简单易上手! ```c#includeintmain(){intn,m,k;k=1;//Field#x计数器while(scanf("%d%d",&n,&m)==2&&(n!=0&&m!=0)){getchar();//输入缓冲区,过滤回车chara[200][200];//定义字符数组储存雷图for(inti=0 题解列表 2021年08月22日 0 点赞 0 评论 966 浏览 评分:9.9
蛇行矩阵-题解(C语言) 摘要:```c #include int main() { int n; while(scanf("%d",&n)==1) { int a[100][100]; …… 题解列表 2021年08月22日 0 点赞 0 评论 616 浏览 评分:9.9
简便代码,利用数学思维, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float m,sum=0.0,t; int n; scanf("%f %d",&m,&n); t=m; fo…… 题解列表 2021年08月22日 0 点赞 0 评论 587 浏览 评分:9.9