Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
10909 | D班-陈颖钧 | 讨厌的小数点 | C++ | 编译错误 | 0 | 0 MS | 0 KB | 296 | 2025-05-25 14:42:48 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,b,j,y,x; double a; cin>>n; for(i=1;i<=n;i++){ x=1; cin>>a>>b; for(j=1;i<=b;i++){ x*=10; } a*=x; cout<<setprecision(0)<<fixed<<a%10<<endl; } }