1 solutions

  • 0
    @ 2025-5-6 18:16:58
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
      int n,a;
      cin>>n;
      if(n<=6&&n>=1){
        cout<<5*n;
      }
      else if(n>6&&n<=10){
        a=30+7*n-42;
        cout<<a;
      }
      return 0;
    }
    
    • 1

    Information

    ID
    1295
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    10
    Tags
    # Submissions
    5
    Accepted
    3
    Uploaded By