#include #include #include #include using namespace std; string Getstr(string str){///规格化字符串(添加0) string temp,getstr=""; int itl=0,itf=str.find("."); for(int i=0; i<3; i++){ temp = str.substr(itl,itf-itl); temp.insert(0,3-temp.length(),'0'); getstr+=temp; itl=itf+1,itf=str.find(".",itf+1); } temp = str.substr(itl,str.length()-itl); temp.insert(0,3-temp.length(),'0'); getstr+=temp; return getstr; } int main (){ int t,xx=0; cin>>t; while(t--){ int m,n,coun=0; cin>>m>>n; string str,tab[1005]; for(int i=0; i>str; tab[coun++]=Getstr(str); } printf("Case #%d:\n",++xx); for(int i=0; i>str; string temp = Getstr(str); map m; for(int j=0; j