[Làm Quen OJ]. Bài 35. Thể tích hình trụ

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 hình trụ với độ cao H và bán kính R, bạn hãy in ra thể tích của hình trụ này với độ chính xác 4 chữ số sau dấu phẩy.


Đầu vào
  • Dòng duy nhất chứa HR là 2 số nguyên dương

Giới hạn
  • 1 <= H, R <= 10^3

Đầu ra
  • In ra thể tích của hình trụ

Ví dụ :

Input 01
2000 4
Output 01
true

Comments

Please read the guidelines before commenting.



  • 0
    Khoi_201248  commented on March 9, 2026, 3:07 p.m.

    đề sai hay sao ý


  • 0
    Tuan_Nguyen  commented on March 7, 2026, 3:26 p.m.

    include <bits/stdc++.h>

    using namespace std; int h,r; int main() { cin>>h>>r; double v=3.14rr*h; cout<<fixed<


  • 0
    AAAAAAAAAA  commented on March 2, 2026, 2:48 p.m.

    https://onecompiler.com/cpp/44f65x9j2 bài này không dùng pi dùng 3.14


  • 0
    chotoimuonacc  commented on Feb. 9, 2026, 8:45 a.m.

    include <bits/stdc++.h>

    using namespace std;

    int main() { int H, R; cin >> H >> R;

    double V = M_PI * R * R * H;
    cout << fixed << setprecision(4) << V;
    
    return 0;
    

    }