- 判断数正负
题解
- @ 2026-9-15 17:53:49
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if(a<0) cout<<"negative"; else if(a==0) cout<<"zero"; else cout<<"positive";
return 0;
}
2 条评论
-
李睿舟 LV 9 @ 2026-9-16 12:31:03orz
-
@ 2026-9-15 21:24:46不是,这有啥好做的
- 1
信息
- ID
- 269
- 时间
- ms
- 内存
- MiB
- 难度
- 显示难度暂无评定
- 标签
- (无)
- 递交数
- 383
- 已通过
- 208
- 上传者