感觉你们应该可以看懂,有两种药方 摘要:解题思路:注意事项:参考代码://方法一:#include <stdio.h>#include<string.h> void q(char x[100],int y[4]){ int len=0; …… 题解列表 2024年11月22日 0 点赞 0 评论 509 浏览 评分:10.0
题解 2913: 整数去重 菜鸟解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,n; scanf("%d",&n); int a[n]; for(i=0…… 题解列表 2024年11月22日 1 点赞 0 评论 315 浏览 评分:10.0
定义一个长度为10的数组存放尾数0到9的最大长度来解决问题 摘要:解题思路:由于每个数只要头和尾,而其中尾只能是0到9,即使当尾为0时不能继续接,也要用10个参数来储存尾巴为0到9的最大长度即可。p[10]的1到9对应当前尾巴为1到9的长度最长的值,所以每拿到一个新…… 题解列表 2024年11月22日 8 点赞 0 评论 801 浏览 评分:10.0
核电站问题(C语言) 摘要:解题思路:定义了一个名为 fun 的函数来计算一个与给定整数 n 相关的数值,并在 main 函数中通过输入 n 来调用 fun 函数并输出结果在 fun 函数中,对于 n …… 题解列表 2024年11月23日 0 点赞 0 评论 176 浏览 评分:10.0
自定义函数求一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main() { double a,b,c,x1,x2;cin>>a>>b>>c; …… 题解列表 2024年11月23日 2 点赞 0 评论 1069 浏览 评分:10.0
2749: Hello, World!题解 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ cout << "Hello world!" << endl; return …… 题解列表 2024年11月24日 2 点赞 0 评论 740 浏览 评分:10.0
1779: 你的第一个程序题解 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout << Just do IT" << endl; …… 题解列表 2024年11月24日 1 点赞 0 评论 359 浏览 评分:10.0
3008: 班长用班费买笔 摘要:解题思路:尽量买四元的笔剩1元,则4元钱的笔少买1支,换成1支5元笔;剩2元,则4元钱的笔少买1支,换成1支6元笔;剩3元,则4元钱的笔少买2支,换成1支5元笔和1支6元笔;注意事项:参考代码:#in…… 题解列表 2024年11月24日 4 点赞 0 评论 247 浏览 评分:10.0
利用指针,switch语句精简代码,给小白理清楚指针思路 摘要:解题思路:这个题有很多办法可以投机取巧,但是仍然建议小白脚踏实地,强化基础。我们利用指针实现对字符串的访问,无需多余的索引,常数,小白可以思考为什么指针a,b进入函数过后,再出来,他们指向的地址没有变…… 题解列表 2024年11月24日 5 点赞 0 评论 426 浏览 评分:10.0
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单 摘要:#include<stdio.h> struct days{//定义结构体 int year; int month; int day; }p1; int main(){ sca…… 题解列表 2024年11月24日 4 点赞 0 评论 625 浏览 评分:10.0