二级C语言-平均值计算(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[11],i,cnt=0,sum=0; double average; for(i=0;i<10;i…… 题解列表 2023年01月09日 0 点赞 0 评论 533 浏览 评分:8.0
二级C语言-最小绝对值(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int i,a[100],min,t,index; for(i=…… 题解列表 2023年01月10日 0 点赞 0 评论 308 浏览 评分:8.0
1320: 字符串展开 摘要:```cpp #include #include using namespace std; int p1,p2,p3,sub_s,ji=1; string s,s1,s_j; bool f…… 题解列表 2023年01月11日 0 点赞 0 评论 557 浏览 评分:8.0
1267: A+B Problem 摘要:```cpp #include using namespace std; int main() { int a,b; cin>>a>>b; cout…… 题解列表 2023年01月12日 0 点赞 0 评论 429 浏览 评分:8.0
2783: 判断是否为两位数 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; if(n/100%10==0&&…… 题解列表 2023年01月12日 0 点赞 0 评论 534 浏览 评分:8.0
1019: [编程入门]自由下落的距离计算-简单易懂 摘要: ```** m,n=map(int,input().strip().split()) # m米 n次时 sum = m #…… 题解列表 2023年01月13日 0 点赞 0 评论 359 浏览 评分:8.0
自定义函数处理最大公约数与最小公倍数 【10行代码 简单易懂】(有解释) 摘要:整体代码答案: ```python a,b=map(int,input().strip().split()) def gcd(a,b): if(b!=0): retu…… 题解列表 2023年01月15日 0 点赞 0 评论 338 浏览 评分:8.0
python版本题解 摘要:解题思路:条件判断注意事项:这里自己写了一个四舍五入,直接用int也一样参考代码:s = int(input())def round(x): x = str(x) if x[x.index…… 题解列表 2023年01月16日 0 点赞 0 评论 583 浏览 评分:8.0
数字逆序输出(C语言指针) 摘要:解题思路:通过指针解决,通俗易懂注意事项:见代码注释参考代码:#include<stdio.h> //输入10个数字,然后逆序输出。 int main(){ int a[10] = {0};/…… 题解列表 2023年01月25日 1 点赞 1 评论 1014 浏览 评分:8.0
菜鸟首次尝试(python)超简单解法 摘要:解题思路:注意事项:参考代码:n=int(input())for _ in range(n): x,y=map(int,input().split()) def realsum(n): …… 题解列表 2023年01月29日 0 点赞 0 评论 364 浏览 评分:8.0