摘要: # 小泉的难题 [小泉的难题 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/2105?from=%2Fsets%2F11) ```c #include void swap(int *p,int *q){//运用指针进行两个数的操作 int 阅读全文
posted @ 2023-07-18 16:11 EricFirst001 阅读(24) 评论(0) 推荐(0)
摘要: # 回文 [又见回文 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/2560?from=%2Fsets%2F11) ```c #include #include //回文 int huiwen(char ch[]){ int len=st 阅读全文
posted @ 2023-07-18 16:10 EricFirst001 阅读(18) 评论(0) 推荐(0)
摘要: # 全字母句——(一题多解) [题目链接]([全字母句 | SDUT OnlineJudge](https://acm.sdut.edu.cn/onlinejudge3/problems/3710?from=%2Fsets%2F11)) ```c #include #include int main 阅读全文
posted @ 2023-07-18 16:09 EricFirst001 阅读(16) 评论(0) 推荐(0)
摘要: # 指针———c语言的灵魂 ## 1.交换两个变量的值 ```c #include void swap(int *pa,int *pb){ int t=*pa; *pa=*pb; *pb=t; } int main(){ int a=5; int b=6; swap(&a,&b); printf(" 阅读全文
posted @ 2023-07-10 16:47 EricFirst001 阅读(21) 评论(0) 推荐(1)
摘要: # 众数 [众数 | SDUT ](https://acm.sdut.edu.cn/onlinejudge3/problems/3740?from=%2Fsets%2F11) ```c #include int main( ) { int c,i,j,n; while(scanf("%d",&n)! 阅读全文
posted @ 2023-07-10 16:26 EricFirst001 阅读(22) 评论(0) 推荐(0)
摘要: # 杨辉三角 1. 首先可以知道中间数为顶上的两个数字相加 2. 还有就是边缘上的数字==都为一== 3. #### 可以分析出中间的数字都是上面数字与左上数字相加 4. 这种题目重要的就是找规律 ```c #include int main(){ int n; int a[30][30]; whi 阅读全文
posted @ 2023-07-10 16:24 EricFirst001 阅读(9) 评论(0) 推荐(0)
摘要: # 小金追不上妹子 ## 冒泡循环测试样例 [小金追不上妹子]([小金追呀追不上妹子 | SDUT OnlineJudge](https://acm.sdut.edu.cn/onlinejudge3/problems/3426?from=%2Fsets%2F11)) ```c #include in 阅读全文
posted @ 2023-07-10 16:23 EricFirst001 阅读(23) 评论(0) 推荐(0)
摘要: # 数日子 [数日子 | SDUT ](https://acm.sdut.edu.cn/onlinejudge3/problems/1182?from=%2Fsets%2F11) ```c #include #include int main() { int n,i,a[13]={0,31,28,3 阅读全文
posted @ 2023-07-10 16:22 EricFirst001 阅读(36) 评论(0) 推荐(0)
摘要: # 数列有序 [题目链接]([数列有序! | SDUT OnlineJudge](https://acm.sdut.edu.cn/onlinejudge3/problems/1244?from=%2Fsets%2F11)) ```c #include int main(){ int n,m; int 阅读全文
posted @ 2023-07-10 16:21 EricFirst001 阅读(11) 评论(0) 推荐(0)
摘要: # 各位数字之和排序 [题目链接](https://acm.sdut.edu.cn/onlinejudge3/problems/1188?from=%2Fsets%2F11) 1. ```c #include int main(){ int n; int a[10];//进行交换位置的原数组 int 阅读全文
posted @ 2023-07-10 16:15 EricFirst001 阅读(40) 评论(1) 推荐(0)