首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
408真题
专业课程
兑换中心
登录
注册
上岸
小王桐学
已上岸西南交通大学人工智能专业硕士
关注
发消息
文章
0
题解
145
发帖
0
笔记
1
Ta的粉丝
218
关注数
0
粉丝数
218
获赞数
304
阅读数
115085
相反数 题解:C
#include <stdio.h> #include <math.h> int main() { int n,a[500],i,j,count = 0; scanf("%d",&n); for(i = 0; i < n; i++...
P2002
2024年2月27日 15:40
回复 0
|
赞 4
|
浏览 567
求矩阵的鞍点 题解:C
#include <stdio.h> int SaddlePoint(int a[][10],int i,int j,int n,int m) { int k; for(k = 0; k < m; k++) //判断a[i][j]是否在行上最大 if...
P1531
2024年2月25日 14:38
回复 2
|
赞 4
|
浏览 993
单链表节点交换 题解:C++
#include <stdio.h> #include <stdlib.h> typedef struct node{ int data; struct node *next; }LNode,*LinkList; //初始化链表 void ...
P1533
2024年2月25日 12:44
回复 0
|
赞 1
|
浏览 741
川大2019 Problem A 题解:C
#include <stdio.h> int main() { int a[101],n,i,t; scanf("%d",&n); for(i = 1; i <= n; i++) scanf("%d",&a[i]); for(...
P1689
2024年2月25日 12:28
回复 0
|
赞 2
|
浏览 799
求组合数 题解:C组合排列
化简 #include <stdio.h> //求阶乘 long long Factor(int n,int r) { int i = n-r+1; long long s = 1; while(i <= n) { s*=i; ...
P1058
2024年2月25日 12:15
回复 0
|
赞 0
|
浏览 814
字符串删除 题解:C
#include <stdio.h> #include <string.h> //字符串匹配 int StringMatch(char *S1,char *S2,char *S3) { int i = 0,j,k = 0,l,count = 0; ...
P1856
2024年2月24日 22:21
回复 0
|
赞 3
|
浏览 871
字符串压缩 题解:C
#include <stdio.h> #include <string.h> int main() { char s[1000],t[1000]; int i = 0,j,n,k = 0; gets(s); while(s[i] != '\...
P1718
2024年2月24日 22:15
回复 0
|
赞 5
|
浏览 850
对称平方数 题解:C
#include <stdio.h> int Square_Symmetry(int n) { int m = n*n,a[6],k = 0; while(m) { a[k++] = m%10; m/=10; } m = 0; k--...
P1463
2024年2月24日 22:03
回复 0
|
赞 2
|
浏览 925
字符串匹配 - 兰州大学 题解:C常规解法
#include <stdio.h> #include <string.h> //字符串匹配 int StringMatch(char *TStr,char *MStr) { char t[100000]; int i = 0,j,k = 0,l...
P1717
2024年2月24日 21:54
回复 0
|
赞 1
|
浏览 898
完数 题解:C
#include <stdio.h> //完数判断 int Judge(int t[1000],int n,int *num) { int j,sum,i = 0; sum=0; for(j=1;j<n;j++) ...
P1046
2024年2月24日 18:28
回复 0
|
赞 1
|
浏览 938
求三角形的面积 题解:C
#include <stdio.h> #include <math.h> int main() { int a[2],b[2],c[2]; while(scanf("%d %d %d %d %d %d",&a[0],&a[1],&a...
P1125
2024年2月24日 18:11
回复 0
|
赞 3
|
浏览 707
出栈入栈合法性 题解:C
#include <stdio.h> #include <string.h> int main() { int top = -1,flag = 1; char s[1000]; gets(s); char *p = s; while(*...
P2005
2024年2月24日 17:55
回复 0
|
赞 1
|
浏览 596
数组对数 题解:C
#include <stdio.h> int main() { int i,j,n,m,x,a[100000],b[100000]; scanf("%d %d %d",&n,&m,&x); for(i = 0; i < n; i...
P1188
2024年2月24日 16:31
回复 0
|
赞 1
|
浏览 477
判断二叉树是否对称 题解:C
第一层(2^0)1个,第二层(2^1)2个,第三层(2^2)4个。。。。。。。。 #include <stdio.h> #include <string.h> #include <math.h> int JudgeSymmetry(ch...
P1551
2024年2月24日 16:26
回复 0
|
赞 2
|
浏览 1.0k
数组逆置 题解:C
#include <stdio.h> #include <string.h> int main() { char s[201]; while(gets(s) != NULL) { char *p = s; while(*p) p++...
P1358
2024年2月23日 21:36
回复 0
|
赞 0
|
浏览 567
众数 题解:C
#include <stdio.h> int main() { int i,a[20]; while(scanf("%d",&a[0]) != EOF) { int index[11] = {0},max = 1; for(i = 1; ...
P1352
2024年2月23日 21:31
回复 0
|
赞 0
|
浏览 576
完数 - 哈尔滨工业大学 题解:C
#include <stdio.h> int Judge(int n) { int j,sum; sum=0; for(j=1;j<n;j++) { if(n%j==0) sum+=j; ...
P1354
2024年2月23日 21:20
回复 0
|
赞 1
|
浏览 555
字符串链接 题解:C
#include <stdio.h> #include <string.h> void MyStrcat(char dstStr[],char srcStr[]) { char *p = dstStr,*q = srcStr; while(*p) ...
P1356
2024年2月23日 20:58
回复 0
|
赞 1
|
浏览 587
字符串去特定字符 题解:C
#include <stdio.h> #include <string.h> int main() { char s[1000],c; while(scanf("%s",s) != EOF) { scanf(" %c",&c); ...
P1362
2024年2月23日 20:50
回复 0
|
赞 4
|
浏览 550
计算两个矩阵的乘积 题解:C
#include <stdio.h> int main() { int i,j,a[2][3],b[3][2],c[2][2]={0},n; for(i = 0; i < 2; i++) for(j = 0; j < 3; j++) s...
P1363
2024年2月23日 20:44
回复 0
|
赞 2
|
浏览 693
1
2
3
4
5
6
...
8
本科学校:宜宾学院
目标学校:西南交通大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!