3 5 7整除(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d", &a); if((a%3==0) && (a%5==0) && (a%7=…… 题解列表 2024年11月22日 1 点赞 0 评论 475 浏览 评分:10.0
2002题解方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,t=0; gets(a); for(i=0;a[i]!='\0&#…… 题解列表 2024年11月22日 0 点赞 0 评论 308 浏览 评分:10.0
核电站问题(C语言) 摘要:解题思路:定义了一个名为 fun 的函数来计算一个与给定整数 n 相关的数值,并在 main 函数中通过输入 n 来调用 fun 函数并输出结果在 fun 函数中,对于 n …… 题解列表 2024年11月23日 0 点赞 0 评论 296 浏览 评分: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 评论 1330 浏览 评分:10.0
1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i, j, n, sum; cin >>…… 题解列表 2024年11月23日 0 点赞 0 评论 405 浏览 评分:10.0
输出个数、各数、逆序 摘要:解题思路:事项:1、循环数个数 2、采用高到低位3、重新提取数字,然后逆序输出就行了参考代码:#include <stdio.h>int main() { int n,a=0; scanf…… 题解列表 2024年11月24日 1 点赞 0 评论 1153 浏览 评分:10.0
2749: Hello, World!题解 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ cout << "Hello world!" << endl; return …… 题解列表 2024年11月24日 4 点赞 0 评论 1174 浏览 评分:10.0
1779: 你的第一个程序题解 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout << Just do IT" << endl; …… 题解列表 2024年11月24日 1 点赞 0 评论 535 浏览 评分: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 评论 396 浏览 评分:10.0
利用指针,switch语句精简代码,给小白理清楚指针思路 摘要:解题思路:这个题有很多办法可以投机取巧,但是仍然建议小白脚踏实地,强化基础。我们利用指针实现对字符串的访问,无需多余的索引,常数,小白可以思考为什么指针a,b进入函数过后,再出来,他们指向的地址没有变…… 题解列表 2024年11月24日 5 点赞 0 评论 593 浏览 评分:10.0