1 solutions

  • 0
    @ 2023-4-29 17:52:16
    #include <bits/stdc++.h>
    
    using namespace std;
    
    #define int long long
    
    signed main()
    {
    	double n;
    	cin >> n;
    	if(n<=20)
    	{
    		cout << fixed << setprecision(2);
    		cout << n*1.68;
    	}
    	if(n>20)
    	{
    		cout << fixed << setprecision(2);
    		cout << n*1.98;
    	}
    	return 0;
    }
    
    • 1

    Information

    ID
    174
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    9
    Tags
    # Submissions
    11
    Accepted
    5
    Uploaded By