首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
408真题
专业课程
兑换中心
登录
注册
上岸
小王桐学
已上岸西南交通大学人工智能专业硕士
关注
发消息
文章
0
题解
145
发帖
0
笔记
1
Ta的粉丝
218
关注数
0
粉丝数
218
获赞数
304
阅读数
115085
求最大值 题解:C
#include <stdio.h> int main() { int i,a[10]; while(scanf("%d",&a[0]) != EOF) { for(i = 1; i < 10; i++) scanf("%d",&...
P1361
2024年2月23日 19:34
回复 0
|
赞 3
|
浏览 576
判断三角形类型 题解:C
设三角形三条边分别为a,b,c,c为最长边。 如果c^2<a^2+b^2, 则为锐角三角形; 如果c^2=a^2+b^2,则为直角三角形; 如果c^2>a^2+b^2,则为钝角三角形。 #include <stdio.h> int main(...
P1351
2024年2月23日 19:30
回复 0
|
赞 5
|
浏览 787
最大公约数 题解:C
#include <stdio.h> int Max_Common(int a,int b) { int i,max = 0; if(a > b) //a为最小的那个数 { i = a; a = b; b = i; } i =...
P1353
2024年2月23日 19:20
回复 0
|
赞 0
|
浏览 851
找x 题解:C
#include <stdio.h> int Find(int a[],int n,int x) { int i; for(i = 0; i < n; i++) if(a[i] == x) return i; return -1; } i...
P1350
2024年2月23日 19:09
回复 0
|
赞 0
|
浏览 573
字符串排序3 题解:C题解
无语!!!! #include <stdio.h> #include <string.h> void Sort(char s[][100],int n) { int i,j; char t[100]; for(i = 0; i < ...
P1261
2024年2月22日 23:12
回复 0
|
赞 3
|
浏览 1.1k
猴子报数 题解:C++无头循环链表报数
#include <stdio.h> #include <stdlib.h> typedef struct node{ int data; struct node *next; }LNode,*LinkList; //建立无头循环链表 vo...
P1081
2024年2月22日 22:43
回复 0
|
赞 2
|
浏览 870
后缀子串排序 题解:C题解
#include <stdio.h> #include <string.h> void Sort(char a[][100],int n) { int i,j; char t[100]; for(i = 0; i < n-1; i++) ...
P1294
2024年2月22日 21:59
回复 0
|
赞 2
|
浏览 682
二进制数 题解:递归解决
#include <stdio.h> int Binary(int n) { if(n >= 2) Binary(n/2); printf("%d",n%2); } int main() { int n; while(scanf(...
P1380
2024年1月27日 15:33
回复 1
|
赞 7
|
浏览 1.2k
输出倒三角图案 题解:C
#include <stdio.h> #include <math.h> int main() { int i,j; for(i = 0 ; i < 4; i++) { for(j = 0; j < i; j++) p...
P1131
2024年2月14日 22:22
回复 0
|
赞 7
|
浏览 1.0k
二进制数字翻转 题解:C
#include <stdio.h> #include <math.h> int main() { int n,i,j; scanf("%d",&n); for(i = 0; i < n; i++) { int a[32...
P1487
2024年2月14日 22:16
回复 0
|
赞 5
|
浏览 1.1k
比较奇偶数个数 题解:C
#include <stdio.h> int main() { int n,even,odd,num; while(scanf("%d",&n) != EOF) { even = odd = 0; while(n) { sc...
P1373
2024年2月14日 22:01
回复 0
|
赞 1
|
浏览 932
矩阵翻转 题解:C
#include <stdio.h> void Reverse(int a[][1000],int n) { int t,low = 0,high = n-1,j; while(low < high) { for(j = 0; j < n;...
P1134
2024年2月14日 21:53
回复 0
|
赞 0
|
浏览 709
特殊排序 题解:C-直接先排序,输出即可
#include <stdio.h> void Sort(int a[],int n) { int i,j,t; for(i = 0; i < n-1; i++) for(j = 1; j < n-i; j++) if(a[j] <...
P1400
2024年2月11日 21:38
回复 0
|
赞 2
|
浏览 1.0k
变位词 题解:c-排序直接比较大小
#include <stdio.h> #include <string.h> void Sort(char *s) { int i,j; char c; for(i = 0; i < strlen(s)-1; i++) for(j ...
P1032
2024年2月11日 21:26
回复 0
|
赞 16
|
浏览 919
成绩排序 - 华科 题解:C
#include <stdio.h> #include <string.h> typedef struct{ char s[101]; int age; float grade; }Student; void Sort(Student s...
P1404
2024年2月11日 21:18
回复 0
|
赞 2
|
浏览 994
找最小数 题解:C
#include <stdio.h> void Min(int a[][2],int n) { int i,index_x = 0,index_y = 0; for(i = 0; i < n; i++) //找到第一个x为最小 if(a[i][0] ...
P1374
2024年2月11日 20:57
回复 0
|
赞 4
|
浏览 908
斐波那契数列 题解:C
#include <stdio.h> int main() { int n; while(scanf("%d",&n) != EOF) { if(n == 0 || n == 1) printf("1\n"); else if(n == ...
P1111
2024年2月10日 22:44
回复 0
|
赞 9
|
浏览 986
百鸡问题 题解:C穷举
#include <stdio.h> int main() { int n; while(scanf("%d",&n) != EOF) { int x,y,z; for(x = 0; x <= 100; x++) for(y...
P1348
2024年2月10日 22:34
回复 0
|
赞 9
|
浏览 1.2k
统计字符 题解:C-easy
#include <stdio.h> #include <string.h> int main() { char t[6],s[81]; while(gets(t) != NULL) { int tt[6] = {0},i,j; i...
P1320
2024年2月10日 22:20
回复 0
|
赞 1
|
浏览 823
细菌的繁殖 题解:C
#include <stdio.h> int Germs(int n) { if(n == 1 || n == 0) return 1; int count = 0,i,j,k; for(i = 0 ; i < n; i++) for(j = 0...
P1033
2024年2月10日 22:03
回复 0
|
赞 0
|
浏览 933
1
...
3
4
5
6
7
8
本科学校:宜宾学院
目标学校:西南交通大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!