acgo题库
  • 首页
  • 题库
  • 学习
  • 天梯
  • 备赛

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
  • 资讯
  • 竞赛
  • 讨论
  • 团队
  • 商城
登录
注册
题目详情提交记录(0)
  • 一道简单题

    无需多言,判断即可 最好不要只用用if C++代码:

    userId_undefined
    zhouyicheng2014
    空间掌握者倔强青铜I/O·IO入门者分支·分支解题者
    0阅读
    0回复
    0点赞
  • 简单

    N = int(input()) if N > 0: print("positive") if N < 0: print("negative") if N == 0: print("zero")

    userId_undefined
    无骨鸡ZHAO
    0阅读
    0回复
    0点赞
  • 水

    #include <iostream> using namespace std; int main(){ int n; cin>>n; if(n>0){ cout<<"positive"; }else if(n==0){//要写两个等于 cout<<"zero"; }else{ cout<<"negative"; } return 0; }

    userId_undefined
    ༺ཌༀཉི༒姜呆呆༒༃ༀད༻
    快乐小狗
    0阅读
    0回复
    0点赞
  • 代码如下:

    #include<bits/stdc++.h> using namespace std; int main(){ int n; cin >>n; if(n>0){ cout <<"positive"; }else if(n==0){ cout <<"zero"; }else if(n<0){ cout <<"negative"; } return 0; }

    userId_undefined
    乾隆降世
    分支·分支解题者倔强青铜I/O·IO入门者
    0阅读
    0回复
    0点赞
  • 学习讨论

    #include <iostream> using namespace std; int main(){ int N; cin >> N; if(N > 0) { cout<<"positive"<<endl; } if(N == 0) { cout<<"zero"<<endl; } if(N < 0) { cout<<"negative"<<endl; } return 0; }

    userId_undefined
    cut
    0阅读
    0回复
    0点赞
  • 7891

    #include<iostream> using namespace std; int main(){ int a; cin>>a; if(a>0){ cout<<"positive"; } else if(a==0){ cout<<"zero"; } else{ cout<<"negative"; } return 0; }

    userId_undefined
    ༺ཌༀ༒剑起风止༒ༀ༻
    模拟·模拟练习生递归·套娃学徒贪心·贪心尝试者快乐小狗枚举·枚举小能手秩序白银
    0阅读
    0回复
    0点赞

共26条

  • 1
  • 2
20条/页
跳至页
暂无数据

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

首页