1 solutions

  • 1
    @ 2026-1-23 12:07:19

    #include <bits/stdc++.h>

    using namespace std;

    int main() {

    int a;
    
    cin >> a;
    
    if (a <= 6) {
    
    	cout << a * 5;
    
    } else {
    
    	cout << 6 * 5 + ((a - 6) * 7);
    
    }
    
    return 0;
    

    }

    Information

    ID
    588
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    5
    Tags
    # Submissions
    555
    Accepted
    211
    Uploaded By