8 条题解

  • 2
    @ 2025-2-12 20:43:13
    #include<bits/stdc++.h>
    #define yy return 0;
    using namespace std;
    signed main(){
        long n;
        cin>>n;
        cout<<n;
        yy
    }
    • 0
      @ 2025-10-26 10:33:53

      #include<bits/stdc++.h> #define yy return 0; using namespace std; signed main(){ long n; cin>>n; cout<<n; yy }

      • 0
        @ 2025-9-30 21:22:53

        惨痛教训! 1.不开long long见祖宗 2.不能写float要写double

        #include <iostream>
        #include <cmath>
        using namespace std;
        int main(){
            double f;
            cin >> f;
            cout << (long long)f;
            return 0;
        }
        
        • 0
          @ 2025-9-17 21:15:47
          #include<iostream>
          using namespace std;
          int main(){
              double a,c;
              long long b;
              cin>>a;
              b=a;
              cout<<b;
          }
          
          • 0
            @ 2025-7-15 11:13:50
            #include<bits/stdc++.h>
            using namespace std;
            int main(){
                double x;
                cin>>x;
                cout<<(long long)(x);
            }
            
            • -1
              @ 2024-11-9 11:40:34

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

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

                x = float(input())

                rounded_x = int(x)

                print(rounded_x)

                • -6
                  @ 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

                  信息

                  ID
                  4466
                  时间
                  1000ms
                  内存
                  128MiB
                  难度
                  1
                  标签
                  (无)
                  递交数
                  536
                  已通过
                  171
                  上传者