Click Here to go back to the homepage.

Slatkisi Solution:


#include <bits/stdc++.h>
using namespace std;

int main() {
    // #ifndef TESTING
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    // #endif
    
    int c, k;
    cin >> c >> k;
    cout << setprecision(10) << round((double) c / pow(10, k)) * pow(10, k);

    return 0;
}