#include<bits/stdc++.h>
using namespace std;
int n,bn;
string bp,nothing,sp;
int main() {
cin >> n;
for(int i=1;i<=n;i++){
cin>>bn>>bp>>nothing>>nothing>>sp;
if(bp.length()+sp.length()==3)cout<<bn<<" "<<bp<<" = "<<bn*1000<<" "<<sp<<endl;//此处仅需用位数来判断进率√
if(bp.length()+sp.length()==4)cout<<bn<<" "<<bp<<" = "<<bn*1000000<<" "<<sp<<endl;
}
return 0;
}
B3926 [GESP202312 三级] 单位转换
最新推荐文章于 2024-11-18 18:10:05 发布