自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ char a[1000]; cin>>a; for(int …… 题解列表 2023年05月16日 0 点赞 0 评论 433 浏览 评分:9.9
[编程入门]自定义函数之字符串连接 摘要:解题思路:直接相加即可注意事项:头文件#include#includeusing namespace std;void func(string n,string m){ cout<<n+m;}int…… 题解列表 2023年05月16日 0 点赞 0 评论 383 浏览 评分:0.0
一次循环找到最小值对应的索引 再一次循环输出数组中的元素 摘要:#include <stdio.h>#include <math.h>int main(){ int i,num[11],min,min_i=0; scanf("%d",&num[0]);…… 题解列表 2023年05月16日 0 点赞 0 评论 333 浏览 评分:0.0
程序简单,花了点时间 摘要:解题思路:注意事项:参考代码:s=input()lns=len(s)#每次最好都先求出来,这个挺好用的for i in range(2,lns):#这两个就是这个嵌套得好好想想 for …… 题解列表 2023年05月16日 0 点赞 3 评论 347 浏览 评分:6.0
题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:def pri (n): if n==1: a=('prime') return a else: for i i…… 题解列表 2023年05月16日 0 点赞 0 评论 374 浏览 评分:0.0
用列表推导式写的,已通过测试!!! 摘要:解题思路:注意事项:参考代码:# 读入矩阵的大小n = int(input())# 读入矩阵matrix = [list(map(int, input().split())) for _ in ran…… 题解列表 2023年05月16日 0 点赞 0 评论 350 浏览 评分:9.9
笨小猴java题解 摘要:import java.util.Scanner;public class 笨小猴 { public static void main(String[] args) { Scann…… 题解列表 2023年05月15日 0 点赞 0 评论 428 浏览 评分:0.0
[编程入门]筛选N以内的素数 摘要:一、解题思路:素数:只能被一和它本身整除的数C参考代码:#include <stdio.h> int main() { void SuShu(); int n; scanf("%d"…… 题解列表 2023年05月15日 0 点赞 0 评论 351 浏览 评分:9.9
DFS(测试数据有问题) 摘要:###DFS 爆数组越界是因为测试数据有问题,如下: ``` 16 16 ....#.......##.. ....##......##.. ............#... ...…… 题解列表 2023年05月15日 0 点赞 0 评论 543 浏览 评分:9.9
[编程入门]猴子吃桃的问题 摘要:一、解题思路:递推C参考代码:#include <stdio.h> int main() { int sum = 1, n; //第N天并没有吃,故s=1 scanf("%d", &n)…… 题解列表 2023年05月15日 0 点赞 0 评论 300 浏览 评分:0.0