#include <bits/stdc++.h> using namespace std; int bcs, cs, n, s;

int main() { cin >> bcs >> cs >> n; for (int i = 1; i <= n; i++) { s = bcs * 10 / cs; bcs = bcs * 10 % cs; } cout << s;

return 0;

}

1 comments

  • @ 2025-3-10 10:52:18
    #include<bits/stdc++.h>
    using namespace std;
    int a,b,c;
    int main(){
    	cin>>a>>b>>c;
    	int ans;
    	for(int i=1;i<=c;i++){
    		ans = a * 10 / b;
    		a = a * 10 % b;
    	}
    	cout<<ans;
    	return 0;
    }
    
    • 1

    Information

    ID
    86
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    5
    Tags
    # Submissions
    54
    Accepted
    23
    Uploaded By