Toggle navigation
YouTube
Facebook
Telegram
english
english
українська
Algotester 4.3
Build 496
2024-10-17
Log In
Contact Us
College
Sponsors
Donate
Sources
C++ 20
#include <bits/stdc++.h> using namespace std; int main() { int n, k, c; cin >> n >> k >> c; for(int m = 1; m <= 4 * n; m++) { if(m * k >= 4 * n) { cout << m * c << "\n"; return 0; } } return 0; }