1 solutions

  • 1
    @ 2025-3-1 15:38:17
    
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	int a=0;
    	cin>>n;
    	if(n<=20)
    	{
    		a=n*10;	
    	} 
    	else
    	{
    		a=(n-20)*15+200;
    	}
    	cout<<a;
    }
    • 1

    Information

    ID
    639
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    39
    Accepted
    25
    Uploaded By