摘要:
#include #include int flag=0;typedef struct linknode{ char data; struct linknode *next;}linknode;typedef struct LinkStack{ linknode *top;}Lin... 阅读全文
摘要:
#includeint wanshu(int);int i,sum;int main(){ int n,j; while(scanf("%d",&n)!=EOF) { if(n6) printf(" %d",j); else printf("%d",j); } } p... 阅读全文
摘要:
#include#include#define N 1000int main(){ char str[N],ch,ch1; char *p; int i,j; while(scanf("%s",str)!=EOF) { i=0;j=0; p=str; ch1=getchar(); scanf... 阅读全文
摘要:
#includeint main(){ int a,b,c; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { if(a>=b+c||b>=a+c||c>=a+b||ab*b+c*c||b*b>a*a+c*c||c*c>a*a+b*b) printf("钝角三角形\... 阅读全文
摘要:
#include#includeint main(){ int n,m,i; while(scanf("%d",&n)!=EOF) { m=(int)sqrt((float)n); if(nm) printf("yes\n"); } return 0;} 阅读全文
摘要:
#includeint main(){ int a[10],i,max; while(scanf("%d",&a[0])!=EOF) { max=a[0]; for(i=1;i<10;i++) { scanf("%d",&a[i]); if(max<a[i]) max=a[i];... 阅读全文
摘要:
#include#define M 100int main(){ int n,x,y,z; while(scanf("%d",&n)!=EOF) { for(x=0;x<=M;x++) for(y=0;y<=M;y++) for(z=0;z<=M;z++) { if(15*... 阅读全文
摘要:
#include #include #define M 10#define N 5int flag=0;typedef struct SeqStack{ char *top; char *base; int stacksize;}SeqStack;void InitStack(Se... 阅读全文