1 solutions

  • 0
    @ 2025-8-19 16:21:19
    #include<bits/stdc++.h>
    using namespace std;
    string t[5];
    string s1; 
    int main(){
    	string T;
    	for(int i=1;i<=3;i++){
    		cin>>t[i];
    	}
    	cin>>T;
    	int n=T.size();
    	for(int k=0;k<n;k++){
    		if(T[k]=='1'){
    			cout<<t[1];
    		}else if(T[k]=='2'){
    			cout<<t[2];
    		}else if(T[k]=='3'){
    			cout<<t[3];
    		}
    	}
    	return 0;
    }
    
  • 1

Information

ID
2394
Time
1000ms
Memory
256MiB
Difficulty
1
Tags
(None)
# Submissions
14
Accepted
7
Uploaded By