全部评论 2

  • #include<cstdio>
    #include<cstring>
    using namespace std;
    char n[10];
    short top=-1;
    int main(){
        while(1){
            n[++top]=getchar();
            if(n[top]<'0'){
                --top;
                break;
            }
        }
        if(n[0]=='-'){
            putchar('n');
            putchar('o');
        }else if(top>1){
            putchar('y');
            putchar('e');
            putchar('s');
        }else if(top==0){
            putchar('n');
            putchar('o');
        }else if(n[0]>=1){
            putchar('y');
            putchar('e');
            putchar('s');
        }else{
            putchar('n');
            putchar('o');
        }
    }
    

    和你的比哪个快

    1周前 来自 浙江

    0
  • 确实快

    2026-01-24 来自 四川

    0
暂无数据

提交答案之后,这里将显示提交结果~

首页