求小数的某一位(c++题解)

题目描述

分数化为小数后,小数点后第位的数字是多少?

输入格式

三个正整数,相邻两个数之间用单个空格隔开。

输出格式

一个数字。

样例

输入样例

复制1 2 1

输出样例

复制5

____________________________________________________________________________
日常发作业题解。 

也是简单到爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆爆表的题

写作不易,点个赞呗!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 

____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________

#include 
using namespace std;
int n,m,k;
int main(){
    cin>>n>>m>>k;
    for(int i=1;i

 

你可能感兴趣的:(c++,算法,动态规划)