- 判断是否为两位数
woshilaoliu
- @ 2025-3-7 17:07:49
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x;
cin>>x;
if(x>=10&&x<=99) cout<<1;
else cout<<0;
return 0;
}
1 条评论
-
数学博士 (张昊喆) LV 6 @ 2025-8-4 15:28:24#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n>=10 && n<=99){ cout<<1; } else{ cout<<0; } return 0; }
- 1
信息
- ID
- 48
- 时间
- ms
- 内存
- MiB
- 难度
- 5
- 标签
- 递交数
- 296
- 已通过
- 114
- 上传者