我来解决1048: [编程入门]自定义函数之字符串拷贝 c语言代码 摘要:下面我会介绍"1048: [编程入门]自定义函数之字符串拷贝"的答案。至少要有一个n和m还有一个数组。然后开始输入(代码如下) scanf("%d",&n); scanf("%s",s…… 题解列表 2024年04月20日 0 点赞 0 评论 470 浏览 评分:4.0
循环入门练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int i,sum=0; for(i=1;i<=1000;i++) { if(i%7…… 题解列表 2024年04月28日 1 点赞 0 评论 580 浏览 评分:4.0
2859: 忽略大小写的字符串比较 摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()c = a.upper()d = b.upper()if c == d: print("…… 题解列表 2024年08月01日 0 点赞 1 评论 539 浏览 评分:4.0
排序(n个数从小到大) 摘要: [========] #include void sort(int a[],int n) //定义一个排序函数sort { …… 题解列表 2024年08月23日 1 点赞 0 评论 810 浏览 评分:4.0
应该是最简洁了的-最强小队 摘要:解题思路:题意理解错了,以为是从一段区间中选取几个结果是一整段的,几行搞定注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int …… 题解列表 2024年11月18日 1 点赞 0 评论 892 浏览 评分:4.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum=0,sum2=0,a[3][3]; for(i=0;i<3;i++) …… 题解列表 2024年11月19日 1 点赞 0 评论 461 浏览 评分:4.0
最复杂的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long f1(int a){ long y; y=(long)a*a; return y;}long f2(int …… 题解列表 2024年11月22日 0 点赞 0 评论 287 浏览 评分:4.0
破解简单密码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ …… 题解列表 2025年04月08日 0 点赞 0 评论 236 浏览 评分:4.0
1034: [编程入门]自定义函数之数字分离 摘要:解题思路:第一种方式就是:1、先算出输入数字有几位 2、然后根据几位去拿到每个个位,并放在数组中,最后输出;第二种方式:需要将int类型转为字符串,继而转为字符数组进行操作;注…… 题解列表 2025年04月17日 1 点赞 0 评论 631 浏览 评分:4.0
10个变量,轻松拿下 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,s,d,f,g,h,…… 题解列表 2025年07月30日 1 点赞 0 评论 388 浏览 评分:4.0