编写题解 2787: 有一门课不及格的学生 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); if((a<60&&b>60)…… 题解列表 2024年12月06日 0 点赞 0 评论 205 浏览 评分:0.0
向量点积计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,a[n],b[n],s,sum=0; scanf("%d",&n); for(…… 题解列表 2024年12月06日 0 点赞 0 评论 232 浏览 评分:0.0
python重载练习之复数加减法 摘要:解题思路:注意事项:参考代码:class Complex: def __init__(self, real1, imag1, real2, imag2, op): self…… 题解列表 2024年12月06日 0 点赞 0 评论 290 浏览 评分:0.0
python重载练习之复数加减法 摘要:解题思路:注意事项:参考代码:class Complex: def __init__(self,real=0,imag=0): self.real=real self…… 题解列表 2024年12月06日 0 点赞 0 评论 170 浏览 评分:0.0
1721: 谁是你的潜在朋友 简单易懂 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和m,以及数组a,大小为2…… 题解列表 2024年12月06日 0 点赞 0 评论 131 浏览 评分:0.0
题解 1012: [编程入门]字符串分类统计新手方法 摘要:#include <stdio.h> int main () { char ch[200]; int i = 0; for (i=0;ch[i]<200;i++){ scanf …… 题解列表 2024年12月06日 4 点赞 0 评论 1121 浏览 评分:10.0
2797 最高的分数(简单易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n; int a[100]; scanf("%d",&n); for(i=0…… 题解列表 2024年12月06日 0 点赞 0 评论 249 浏览 评分:10.0
C语言代码 结构体+两个for循环解决 摘要:解题思路: 题目怎么说就怎么写就行,不需要太多复杂的理解,知道我们如果没有改到一个任何密码,就说明没有“你”的账号,就输出empty就行了注意事项: 我觉得这个题目最大的难点可能在于,什么时候需要让它…… 题解列表 2024年12月06日 0 点赞 0 评论 167 浏览 评分:0.0
循环每一位的值,用%10求余+/10更新;初始值比较需要另设n保存 摘要:解题思路:1.循环每一位的值,用%10求余+/10更新。2.中间值需要用count储存,加入if判断。3.while会让原始值降至0,因此初始值的比较需要另设n保存。参考代码:#include<ios…… 题解列表 2024年12月06日 1 点赞 0 评论 137 浏览 评分:8.0
b每次左移一位,为a的个位数求模留出空间 摘要:解题思路:建立新变量b=0。由于b的值是累加不断更新,因此初始值需要是0。循环逻辑:b每次左移一位,为a的个位数求模留出空间。数值更新:a每次同样左移,不断保存前一位的值,回溯到上面的循环里。参考代码…… 题解列表 2024年12月06日 0 点赞 0 评论 126 浏览 评分:0.0