随笔分类 - c语言经典题目
找老乡
摘要:# 找老乡 [找老乡 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/3443?from=%2Fsets%2F11) ```c #include #include #include int main() { int n,i,sum; cha
单词统计
摘要:# 单词统计 [单词统计 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/1180?from=%2Fsets%2F11) ```c #include #include int main(){ char a[100]; int count=0
简单字符串排序
摘要:# 简单字符串排序 [简单字符串排序 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/1334?from=%2Fsets%2F11) ```c #include #include int main(){ char a[20][20];//二
小纸条
摘要:#小纸条 [小鑫の日常系列故事(七)——小纸条 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/2738?from=%2Fsets%2F11) ```c #include #include int main() { int n; char
字符统计2
摘要:# 字符统计2 [字符统计2 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/1525?from=%2Fsets%2F11) ```c #include #include int main() { char ch[100]; while (
保留整数
摘要:# 保留整数 [保留整数 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/1171?from=%2Fsets%2F11) ```c #include #include #include int main(){ char str1[100];
N!
摘要:# N! [N! | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/3931?from=%2Fsets%2F11) ```c #include long long int judgmenta(long long int n){//定义函数的类
斐波那契数列
摘要:# 斐波那契数列 [C/C++经典程序训练2 斐波那契数列 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/1132?from=%2Fsets%2F11) ```c #include //递归经典题目 #include #include i
小泉的难题
摘要:# 小泉的难题 [小泉的难题 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/2105?from=%2Fsets%2F11) ```c #include void swap(int *p,int *q){//运用指针进行两个数的操作 int
回文
摘要:# 回文 [又见回文 | SDUT](https://acm.sdut.edu.cn/onlinejudge3/problems/2560?from=%2Fsets%2F11) ```c #include #include //回文 int huiwen(char ch[]){ int len=st
全字母句
摘要:# 全字母句——(一题多解) [题目链接]([全字母句 | SDUT OnlineJudge](https://acm.sdut.edu.cn/onlinejudge3/problems/3710?from=%2Fsets%2F11)) ```c #include #include int main
众数
摘要:# 众数 [众数 | 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)!
杨辉三角
摘要:# 杨辉三角 1. 首先可以知道中间数为顶上的两个数字相加 2. 还有就是边缘上的数字==都为一== 3. #### 可以分析出中间的数字都是上面数字与左上数字相加 4. 这种题目重要的就是找规律 ```c #include int main(){ int n; int a[30][30]; whi
小金追不上妹子——==冒泡循环测试样例==
摘要:# 小金追不上妹子 ## 冒泡循环测试样例 [小金追不上妹子]([小金追呀追不上妹子 | SDUT OnlineJudge](https://acm.sdut.edu.cn/onlinejudge3/problems/3426?from=%2Fsets%2F11)) ```c #include in
数日子
摘要:# 数日子 [数日子 | 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
数列有序
摘要:# 数列有序 [题目链接]([数列有序! | SDUT OnlineJudge](https://acm.sdut.edu.cn/onlinejudge3/problems/1244?from=%2Fsets%2F11)) ```c #include int main(){ int n,m; int