文章列表

筛选

世界杯来了

摘要:#include <stdio.h>         //贪心;递推dp struct { int start; int end; } ball[100]; int main() { ……

顺子

摘要:描述"赢了!我顺子!"也许在准备计算机考研的无聊时光里,打牌是最好的消遣方式了。只是,现在有5张牌在手里,它们构成顺子吗?从扑克牌中随机抽5张牌,判断是不是一个顺子,即这5张牌是不是连续的。2-10为……

银行业务队列

摘要:#include <stdio.h> int main() { int n,A[1000],B[1000]; while (scanf("%d",&n)!=EOF) { in……

计算表达式

摘要:#include <stdio.h> #include  <ctype.h> double factor_value(); double term_value(); double expres……

test 2

摘要:#include<stdio.h>void f(int a[20],int n,int i,int r);main(){    int a[20];    char b[40];    int i=1……

1227题解

摘要:#include<stdio.h> #include<stdlib.h> #define SWAP(x,y) {int tmp; tmp = x; x = y; y = tmp;} ty……

循环链表与单个结点删除

摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> //定义一个结点,可视为链表的最小单元,包括两要素:指针域和数据域 type……

这是我的第一篇文章

摘要:我是一名在校生,我也是一名程序小白,我发誓,从今天开始,在接下来的不到2年的生活里,我要逆袭,这里将是我的开始,希望我可以在这里坚持。……

1169题解

摘要:#include <stdio.h> #include <stdlib.h> #include <math.h> #define SWAP(a,b) {int tmp; tmp = a;a ……