C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<math.h>using namespace std;int main(){ for(int i=…… 题解列表 2022年11月24日 0 点赞 0 评论 256 浏览 评分:0.0
2770: 计算浮点数相除的余数 摘要:解题思路:注意事项:参考代码:a,b = map(float,input().strip().split())print('{:g}'.format(a % b))…… 题解列表 2022年11月23日 0 点赞 0 评论 686 浏览 评分:4.4
(史上最简单题解)阿姆斯特朗数 摘要: 解题思路:直接一个if语句就秒杀 #include int main() { int i; for(i=2;i…… 题解列表 2022年11月23日 0 点赞 0 评论 268 浏览 评分:9.9
去掉空格(简单基础版) 摘要: 解题思路:先要一个可以一直输入,等到不想输入就可以不输入的东西,我们这里可以用到while(a[i]),用这个的原因是当输入正当则继续输入,想结束那就输入ctrl+z即可 接下来不用做处理,直…… 题解列表 2022年11月23日 0 点赞 0 评论 333 浏览 评分:9.9
20221123字符逆序 摘要:解题思路:注意事项:字符串长度为l,则旧/新字符串下标最大均为l-1;参考代码:#include <stdio.h>#include <string.h>int main(){ int i,j…… 题解列表 2022年11月23日 0 点赞 0 评论 176 浏览 评分:0.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k; scanf("%d",&n); for(i=1;i<=n;i++) { k=0; …… 题解列表 2022年11月23日 0 点赞 0 评论 174 浏览 评分:9.9
编写题解 2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int jibing(int A[100],float n){ int i; float w,x,y,z; for(i=0;i<n;…… 题解列表 2022年11月23日 0 点赞 0 评论 351 浏览 评分:8.0
2009: 第一个带类的C++程序 摘要:```cpp #include using namespace std; class Clock { public: int Set() { cin >> year >> mo…… 题解列表 2022年11月23日 0 点赞 0 评论 301 浏览 评分:9.9
ceil函数解邮资问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main() { int x,N; char c; scanf("%d …… 题解列表 2022年11月23日 0 点赞 2 评论 827 浏览 评分:9.9
编写题解 1034: [编程入门]自定义函数之数字分离,有比较细节的地方 摘要:解题思路:利用for循环注意事项:直接用input函数不用外面嵌套int,这也是这个题应该注意的地方参考代码:def q():#直接用q带过了 a = input()#直接便利了字符串,而外面有…… 题解列表 2022年11月23日 0 点赞 0 评论 375 浏览 评分:0.0