2006: 寻找奇整数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; int m…… 题解列表 2023年10月19日 0 点赞 0 评论 533 浏览 评分:0.0
2868: 最长最短单词(C语言) #include#includeintmain(){chara[2000];gets(a);charword[100];//用于储存当前的单词charlongest_word[100];charshortest_word[100];1.intn=strlen(a);for(inti=0;i0)||st 题解列表 2023年10月19日 0 点赞 0 评论 832 浏览 评分:9.9
2002: 计算数字个数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; int m…… 题解列表 2023年10月19日 0 点赞 0 评论 489 浏览 评分:0.0
2001: 边长判断---先排序后计算 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; int m…… 题解列表 2023年10月19日 0 点赞 0 评论 526 浏览 评分:0.0
1990: 蓝桥杯算法训练VIP-Collecting Luggage 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { cout<<"Case 1: Time…… 题解列表 2023年10月19日 0 点赞 0 评论 465 浏览 评分:6.0
大整数加法(呃啊啊啊啊啊啊啊啊啊啊,搞了半天,原来是gets的原因,收取输入的时候不能用gets,为什么的话不太清楚,用指针递减去掉多余的0) 摘要:解题思路:先用两个字符串数组获得输入的值,再将字符串数组转化为int型数组,转化的原理是字符的ASCII码,这里使用了a[i] - '0'的方式,因为字符类型的数字和对应的ASCII码…… 题解列表 2023年10月19日 0 点赞 0 评论 667 浏览 评分:9.9
C二级辅导-进制转换 (C语言代码) ###解题思路:用短除法。#####定义一个数组保存每次除法所得的余数,之后倒序输出即可得到正确的八进制数```c#includeintmain(){inti,t,n;inta[100];scanf("%d",&n);t=0;while(n>0){t++;a[t]=n%8;//用短除法将每一次得到的位 题解列表 2023年10月19日 0 点赞 1 评论 568 浏览 评分:0.0
三角形判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdbool.h>#include <math.h>int main(){ int a, b, c; …… 题解列表 2023年10月19日 0 点赞 0 评论 525 浏览 评分:0.0
if语句解决水仙花数问题 摘要:参考代码:#include <stdio.h>#include <math.h>int main(){ int n; scanf("%d",&n); if(n>99&&n<1000)…… 题解列表 2023年10月19日 0 点赞 1 评论 421 浏览 评分:9.9
删除单词后缀 摘要:解题思路:注意事项:需要判断单词删除后缀后是否为0参考代码:n=input()if ((n[-2::]=='er') and (len(n)!=2)): print(n[:-2:…… 题解列表 2023年10月19日 0 点赞 0 评论 554 浏览 评分:0.0