1004题: 母牛生子的故事 摘要:# 自己写的代码 ```c #include int main() { int n; int sum=0; while(~scanf("%d\n",&n)){ …… 题解列表 2023年04月24日 0 点赞 0 评论 479 浏览 评分:0.0
刷題記錄,新手勿怪-带注解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct transcript{ char student_num[20]; char name[20]; int grade[3]…… 题解列表 2023年04月24日 0 点赞 0 评论 481 浏览 评分:0.0
编写题解 2824: 求出e的值 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanne…… 题解列表 2023年04月24日 0 点赞 0 评论 595 浏览 评分:0.0
2760: 整型与布尔型的转换 摘要:解题思路:强制转换就行了注意事项:bool类型在c语言里面没有,要用到头文件#include<stdbool.h>,不过强制转换可以不需要。参考代码:#include<stdio.h>#include…… 题解列表 2023年04月25日 0 点赞 0 评论 785 浏览 评分:0.0
编写题解 3010: 奇偶数之和 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int n; int sum=0,a=0; if(scanf("%d",&n)==EOF){…… 题解列表 2023年04月25日 0 点赞 0 评论 483 浏览 评分:0.0
编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int n; scanf("%d", &n); int a[n]; for (int…… 题解列表 2023年04月25日 0 点赞 0 评论 552 浏览 评分:0.0
1005题: 温度转换 摘要:# 自己写的代码 ```c #include int main() { float n; scanf("%f",&n); printf("c=%.2f",5*(n-32)/9); …… 题解列表 2023年04月25日 0 点赞 0 评论 440 浏览 评分:0.0
编写题解 2797: 最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; for(int i=0…… 题解列表 2023年04月25日 0 点赞 0 评论 469 浏览 评分:0.0
1006题: 三个数找最大值(数组的思路) #自己写的代码```c#includeintmain(){inta[3];inttemp;gets(a);for(inti=0;ia[i+1]){temp=a[i];}else{temp=a[i+1];}}printf("%d",temp);return0;}```#代码的思路, 题解列表 2023年04月25日 0 点赞 0 评论 456 浏览 评分:0.0
1007题: 分段函数求值(if-else) 摘要:# 自己写的代码 ```c #include int main() { int x; scanf("%d",&x); if(x=1&&x…… 题解列表 2023年04月25日 0 点赞 0 评论 404 浏览 评分:0.0