1761: 学习ASCII码 摘要:[TOC] # 思路 >直接输出,注意格式转换 # code ```c++ #include using namespace std; int main(){ …… 题解列表 2023年11月24日 1 点赞 0 评论 555 浏览 评分:0.0
2997: 梯形面积 摘要:[TOC] # 思路 > 数学公式计算,同时记得控制精度 # code ```c++ #include using namespace std; int main() { …… 题解列表 2023年11月24日 0 点赞 0 评论 373 浏览 评分:9.9
用C语言完成奇偶ASCII值判断 摘要:解题思路:这段代码首先提示用户输入一个字符,然后使用scanf函数接收用户的输入,并将字符赋值给变量ch。接着,通过对ch进行取模运算,判断其ASCII值是否为奇数。如果结果为1,则输出"YES",否…… 题解列表 2023年11月24日 0 点赞 0 评论 673 浏览 评分:9.9
2847: 找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:n=input()flag=Falsefor i in n: if n.count(i)==1: print(i) flag=True …… 题解列表 2023年11月24日 0 点赞 0 评论 420 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n, m; // 输入数组大小和移动的位置 scanf("…… 题解列表 2023年11月23日 0 点赞 0 评论 350 浏览 评分:9.9
最简单的方法,只要有耐心,不需要理解 摘要:解题思路:注意事项:参考代码:/*有N个学生,每个学生的数据包括学号、姓名、3门课的成绩,从键盘输入N个学生的数据,要求打印出3门课的总平均成绩,以及最高分的学生的数据(包括学号、姓名、3门课成绩)输…… 题解列表 2023年11月23日 0 点赞 0 评论 185 浏览 评分:9.9
猴子吃桃(简易版) 摘要:解题思路:注意事项:参考代码#include<stdio.h>int main(){ int n; int sum=2; scanf("%d",&n); for(int i=1…… 题解列表 2023年11月23日 0 点赞 0 评论 241 浏览 评分:9.9
自由下落(简单版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float m,n,sum=0; scanf("%f%f",&m,&n); float t=m…… 题解列表 2023年11月23日 0 点赞 0 评论 148 浏览 评分:9.9
双向链表解题,依次输出 摘要:```c #include #include #include typedef struct SList { int num; int grade; struct SList*…… 题解列表 2023年11月23日 0 点赞 0 评论 220 浏览 评分:0.0
有规律的数列求和(无数组版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; float a=1,b=2; float sum=0; float k,z…… 题解列表 2023年11月23日 0 点赞 0 评论 350 浏览 评分:0.0