题解 2781: 奇偶ASCII值判断 摘要:解题思路:要输出no或yes注意事项:字符型是自动转整数的。参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char a…… 题解列表 2023年12月09日 0 点赞 0 评论 376 浏览 评分:9.9
你怎么知道我单抽出克拉拉 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a1,a2,n; cin>>a1>>a…… 题解列表 2023年12月09日 0 点赞 1 评论 268 浏览 评分:9.9
题解 数组插入处理(最易懂方法) 摘要:**题解 数组插入处理(最易懂方法)** **思路**: 将m与数组中的9个元素比大小,找到m的位置,再将m后的数组元素后移一位给m让出一个位置 **注:** 如果代码看不懂,可以在草稿纸上跟…… 题解列表 2023年12月09日 0 点赞 0 评论 221 浏览 评分:9.9
买笔程序(买最多的笔python简单粗暴) 摘要:解题思路:要买最多的笔,肯定优先买4元最便宜的,当钱不够买4元笔的时候就撤回之前买的一些笔。转而买5元和6元的笔让钱凑到零特点:简单粗暴参考代码:x = int(input())a = 0 # 6元…… 题解列表 2023年12月08日 0 点赞 0 评论 406 浏览 评分:9.9
去掉空格(c语言新题解) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int removeSpace(char s[]){ int count=0; i…… 题解列表 2023年12月08日 0 点赞 0 评论 170 浏览 评分:0.0
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; cin>>a; if (a%2==0)…… 题解列表 2023年12月08日 0 点赞 0 评论 162 浏览 评分:0.0
等差数列求解 摘要:解题思路:首先求通项,后遍历从1到n之间的每一个数,将这些数代入通项,求和注意事项:循环的起点是i=1,也要注意sum需要有初始值参考代码:#include<stdio.h>int main(){ i…… 题解列表 2023年12月08日 0 点赞 0 评论 185 浏览 评分:0.0
题解 2775: 等差数列末项计算 摘要:解题思路:注意事项:参考代码:##include<iostream>using namespace std;int main(){ int a,b,n,m; cin>>a>>b>>n; …… 题解列表 2023年12月08日 0 点赞 0 评论 212 浏览 评分:0.0
题解 2773: 计算线段长度 摘要:解题思路:自行抄题解注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double xa,ya,xb,yb,a,…… 题解列表 2023年12月08日 0 点赞 0 评论 179 浏览 评分:2.0
解决输出全部因子的问题 摘要:解题思路:这道题还是很好搞定的,主要是输出格式上可能不同小伙伴有不同的想法,这里我用到了Java里面字符串的一个特征注意事项:内层循环只用到i/2即可,因为一个整数的因子不会大于他的1/2参考代码:p…… 题解列表 2023年12月08日 0 点赞 0 评论 173 浏览 评分:0.0