| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
wa了。。。。#include<stdio.h>
#include<string.h>
main()
{
int upper,lower;
int i;
char s[2][15];
upper=11;
lower=0;
while(scanf("%d",&i))
{
if(!i) break;
scanf("%s%s",s[0],s[1]);
if(!strcmp(s[1],"high")) upper=i;
else
if(!strcmp(s[1],"low")) lower=i;
else
if(!strcmp(s[1],"on"))
{
if(upper<=lower+1||i>=upper||i<=lower)
printf("Stan is dishonest\n");
else
printf("Stan may be honest\n");
upper=11;lower=0;
}
}
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator