2 solutions

  • 1
    @ 2024-7-19 16:30:22
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a;
    	cin>>a;
    	if(a<0) 
    	{
    		cout<<"negative"<<endl;
    	}
    	cout<<a;
    }
    

    Information

    ID
    11
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    230
    Accepted
    75
    Uploaded By