首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
波耶菠萝蜜
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
13
发帖
0
笔记
0
Ta的粉丝
14
关注数
0
粉丝数
14
获赞数
0
阅读数
616
计算Sn 题解:
核心在于移位, // 输出样例#: // 24690 #include <stdio.h> #include <math.h> int main(){ int a,n...
P1043
2025年7月29日 16:06
回复 0
|
赞 0
|
浏览 31
偷菜时间表 题解:
重点在于变换 用/%其实是最快的,想试试函数调用hhhh #include<stdio.h> int change(int mintue); int remians(int mintue); int main(){ &...
P1053
2025年7月29日 11:59
回复 0
|
赞 0
|
浏览 27
矩阵求和 题解:
也是非常类似矩阵翻转 #include <stdio.h> int main(){ int n=0;//表示矩阵大小; scanf("%d",&n); ...
P1135
2025年7月27日 20:44
回复 0
|
赞 0
|
浏览 41
矩阵翻转 题解:
两段while for 是对称的,改一下scanf就行了 #include <stdio.h> int main(){ int n=0;//表示矩阵大小; scanf("%d",&n); int a[n]...
P1134
2025年7月27日 20:39
回复 0
|
赞 0
|
浏览 65
疯狂的小面包 题解:
非常简单的if——else,注意一下用double就行 #include <stdio.h> int main(){ double dist,v,w,t;//新老区距离  ...
P1128
2025年7月27日 20:27
回复 0
|
赞 0
|
浏览 37
求三角形的面积 题解:
用的是海伦公式 #include <stdio.h> #include <math.h> int main() { int a1,a2,b1,b2,c1,c2;  ...
P1125
2025年7月27日 20:18
回复 0
|
赞 0
|
浏览 34
Y/N 题解:
没有想到还可以这样 #include <stdio.h> int sq(int a) { return a * a; } int main() { int a, b, c, d; ...
P1095
2025年7月26日 17:51
回复 0
|
赞 0
|
浏览 43
阶乘和 题解:
考的就是递归或者迭代,还不错 // 求Sn=1!+2!+3!+4!+5!+…+n!之值,其中n是一个数字。 // 输入一个n(n<=20) #include <stdio.h> long int f(long int n); ...
P1044
2025年7月26日 16:55
回复 0
|
赞 0
|
浏览 51
杨辉三角形 题解:
我的建议是先承接好输入, 直接在一个全为一的二维矩阵生成好杨辉三角形即可,多层for循环确实有意思 // 现在要求输入你想输出杨辉三角形的行数n; 输出杨辉三角形的前n行. // 输入输出格式 // 输入描述: // 输入你想输出杨辉三角形的行数n(n<=20);当输入...
P1062
2025年7月26日 16:54
回复 0
|
赞 0
|
浏览 37
陶陶摘苹果 题解:
考察的时数组的承接和if-else的判断 感觉还是相当简单的。 #include<stdio.h> int main(){ int high =0; int a[10];//承接苹果高度 &...
P1084
2025年7月26日 16:52
回复 0
|
赞 0
|
浏览 50
字符分类 题解:
本质还是ASCII码的使用,就是不知道为什么分好类后直接输出数组不行,可能判定\0不符合标准把, fgets是个好东西啊 #include <stdio.h> #include <string.h> int main(){ &n...
P1016
2025年7月24日 14:43
回复 0
|
赞 0
|
浏览 66
字符移动 题解:
注意a[i]和ASCII的比较是 a[i]?'a', a[]不得加'',编译应该会自动转化 #include <stdio.h> #include <string.h> ...
P1012
2025年7月24日 10:43
回复 0
|
赞 0
|
浏览 74
字符串翻转 题解:
核心是在p[]中的运算,注意越界问题 int a = strlen(p); for (int i = 0; i < a; i++) { // 正确循环次数 &n...
P1006
2025年7月23日 16:51
回复 0
|
赞 0
|
浏览 60
本科学校:长春理工大学
目标学校:武汉理工大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!