3 solutions

  • 0
    @ 2024-12-30 12:29:17

    x = float(input())

    rounded_x = int(x)

    print(rounded_x)

    • 0
      @ 2024-11-9 11:40:34

      import numpy as np a=np.float64(input()) a=int(a) print(a)

      • -2
        @ 2024-11-17 21:09:32

        因为输出小数点后 99 位,所以printf("%.9lf",a/b);

        #include <bits/stdc++.h>
        using namespace std;
        int main()
        {
            double a,b,c;
            cin>>a>>b;
            printf("%.9lf",a/b);
            return 0;
        }
        
        
        • 1

        Information

        ID
        4466
        Time
        1000ms
        Memory
        128MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        363
        Accepted
        116
        Uploaded By