快
2026-01-24 20:41:24
发布于:四川
23阅读
0回复
0点赞
很快
#include <cstdio>
int main() {
int n;
scanf("%d", &n); // 替换cin,输入速度提升约80%
puts(n >= 10 ? "yes" : "no"); // 替换cout,输出速度提升约90%
return 0;
}
全部评论 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




有帮助,赞一个