[Làm Quen OJ]. Bài 28. Căn bậc 5

View as PDF

Submit solution

Points: 1.00 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Problem source:
28Tech
Problem type
Allowed languages
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch

Cho số nguyên dương N, bạn hãy in ra căn bậc 5 của N


Đầu vào
  • Dòng duy nhất chứa N

Giới hạn
  • 1 <= N <= 10^6

Đầu ra
  • In ra kết quả của bài toán lấy 2 số sau dấu phẩy

Ví dụ :

Input 01
19598
Output 01
7.22

Comments

Please read the guidelines before commenting.



  • 0
    vyctini0607  commented on Sept. 16, 2026, 2:09 p.m.

    import java.util.Scanner;

    public class Main { public static void main(String[] args) {

      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      System.out.println(String.format("%.2f", Math.pow(n, 1.0/5)));
    }
    

    }


  • 0
    linhnb  commented on Aug. 29, 2026, 2:29 p.m.

    include <bits/stdc++.h>

    using namespace std;

    int main()

    {

    double n;
    cin >> n;
    cout << fixed << setprecision(2)<< pow(n,1.0/5);
    

    }


  • 0
    linhnb  commented on Aug. 29, 2026, 2:27 p.m.

    .


  • -1
    pvt6_0023  commented on Feb. 28, 2026, 11:21 a.m.

    bài này nếu không dùng hàm pow thì có làm được không ta? Tại pow này nếu không dùng hàm pow thì có làm được không ta. Tại pow nó dễ sai lệch ấy=)


  • 0
    TIEN_DAT_EPE_2006  commented on Feb. 27, 2026, 7:47 a.m.

    include <bits/stdc++.h>

    using namespace std; int main(){ int n; cin >> n; cout << fixed << setprecision(2) << pow(n,(float) 1/5); return 0; }