[Làm Quen OJ]. Bài 26. Gửi tiền ngân hàng

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

28Tech đang có N đồng tại sổ tiết kiệm với lãi suất là 4% 1 năm.

Bạn hãy tính số tiền lãi mà 28Tech sẽ được trả vào cuối kỳ, lưu ý là số tiền lãi sẽ là một số nguyên.


Đầu vào
  • Dòng duy nhất chứa số tiền N

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

Đầu ra
  • In ra tiền lãi mà 28Tech được trả.

Ví dụ :

Input 01
1000000
Output 01
40000

Comments

Please read the guidelines before commenting.



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

    include <bits/stdc++.h>

    using namespace std;

    int main()

    {

    long long n;
    
    cin >> n;
    
    cout<< n * 4 / 100<<'\n';
    

    }


  • 0
    pvt6_0023  commented on March 1, 2026, 2:39 a.m.

    include <bits/stdc++.h>

    using namespace std;

    int main() { iosbase::syncwith_stdio(false); cin.tie(NULL); long long n;cin>>n; cout<< (n*4)/100; return 0; }


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

    include <bits/stdc++.h>

    using namespace std; int main(){ long long n; cin >> n; cout << n / 25; return 0; }