3 条题解

  • 1
    @ 2025-2-16 10:18:05

    依葫芦画瓢,单词别打错就行

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

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

      • 0
        @ 2024-12-11 18:30:58

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

        • 1

        信息

        ID
        4485
        时间
        1000ms
        内存
        128MiB
        难度
        1
        标签
        (无)
        递交数
        169
        已通过
        100
        上传者