3 條題解

  • 0
    @ 2026-6-6 16:30:51
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	if(n>0)
    	{
    		cout<<"positive";
    	}
    	if(n==0)
    	{
    		cout<<"zero";
    	}
    	if(n<0)
    	{
    		cout<<"negative";
    	}
    	return 0;
     }
    

    資訊

    ID
    911
    時間
    1000ms
    記憶體
    256MiB
    難度
    1
    標籤
    (無)
    遞交數
    336
    已透過
    126
    上傳者