#include<bits/stdc++.h>
using namespace std;
int main()
{
char x[10],c;
int n,t;
cin>>t;
while(t--){
int ans;
while((c=getchar())!='.') ans=0;
while((c=getchar())!=' ') x[ans++]=c;
cin>>n;
if(n>ans) cout<<"0"<<endl;
else cout<<x[n-1]<<endl;
}
return 0;
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交