宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#define S(c,a,b) float s=(a+b+c)/2#define area(c,a…… 题解列表 2023年09月22日 0 点赞 0 评论 279 浏览 评分:0.0
弟弟的作业java使用正则表达式进行字符串提取 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2023年09月22日 0 点赞 0 评论 493 浏览 评分:0.0
[编程入门]结构体之成绩统计2java 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2023年09月22日 0 点赞 0 评论 583 浏览 评分:0.0
我的非常简单 摘要:解题思路:注意事项:参考代码:import mathwhile True: L, W, x, y, R, a, v, s = map(int, input().split()) if L …… 题解列表 2023年09月22日 0 点赞 0 评论 502 浏览 评分:9.9
优质题解 结构体+自定义sort轻松拿捏 摘要:解题思路:显而易见本题可利用结构体将各科成绩、学号等联系在一起,再根据题目给出的排序规则,自定义sort的方式即可。注意事项:第一个关键在于sort方式的编写,要先依据总分,总分相同比较语文成绩,若再…… 题解列表 2023年09月22日 0 点赞 0 评论 878 浏览 评分:9.9
比较简单理解的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,y; scanf("%d %d %d",&n,&x,&y); if(y<=x*n){ n = n…… 题解列表 2023年09月22日 0 点赞 0 评论 723 浏览 评分:7.3
简单密码(标题有点短) 摘要:参考代码: ```c #include #include int main() { char a[200]; gets(a); int len=strlen(a); for(…… 题解列表 2023年09月22日 0 点赞 0 评论 426 浏览 评分:0.0
大小写转换(乐,误会了“输入以“End of file”结束。”这句话,还以为输出这个字符串停止输入) 摘要:参考代码: ```c #include #include int main() { char a[80]={'\0'}; while(~scanf("%s",a)) { …… 题解列表 2023年09月22日 0 点赞 0 评论 652 浏览 评分:0.0
短信计费(( •̀ ω •́ )✧) 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a; double k=0; for(int i=0…… 题解列表 2023年09月21日 1 点赞 0 评论 683 浏览 评分:9.9
用函数和数组求解整数的和与平均值 摘要:解题思路:分别构建求和函数和求均值函数,通过函数的调用实现功能输出注意事项:在C语言中,数组的大小不能直接用变量n来定义,需要使用动态内存分配来实现(例如malloc函数)。如果你想定义一个大小可变的…… 题解列表 2023年09月21日 0 点赞 0 评论 810 浏览 评分:9.9