2 solutions

  • 1
    @ 2025-4-29 17:07:40

    #include <bits/stdc++.h> #include using namespace std; int n; double a,b,c; int main() { cin>>n; if(n<150) { a=n0.4463; printf("%.1f",a); } else if(n<400) { b=1500.4463+(n-150)0.4663; printf("%.1f",b); } else { c=1500.4463+250*0.4663+(n-400)*0.5663; printf("%.1f",c); } return 0; }

    • 0
      @ 2025-6-4 15:42:50

      #include <bits/stdc++.h> #include using namespace std; int n; double a,b,c; int main() { cin>>n; if(n<150) { a=n0.4463; printf("%.1f",a); } else if(n<400) { b=1500.4463+(n-150)0.4663; printf("%.1f",b); } else { c=1500.4463+250*0.4663+(n-400)*0.5663; printf("%.1f",c); } return 0; }

      • 1

      Information

      ID
      1349
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      5
      Tags
      (None)
      # Submissions
      79
      Accepted
      29
      Uploaded By