“人其实就这一辈子,我想要的生活不是安逸的,虽然很累,但我想要辉煌的人生,所以也一直在为此努力、不松懈。我所理解的辉煌人生,不是挣了多少钱、做了多伟大的事,而是将人生过得有意义,不碌碌无为。哪怕前进得很慢,但是每分每秒都在往前走,去追求梦想。” ----喻言
萌萌哒表情符号通常由“手”、“眼”、“口”三个主要部分组成。简单起见,我们假设一个表情符号是按下列格式输出的:
[左手]([左眼][口][右眼])[右手]
现给出可选用的符号集合,请你按用户的要求输出表情。
输入格式:
输入首先在前三行顺序对应给出手、眼、口的可选符号集。每个符号括在一对方括号 []内。题目保证每个集合都至少有一个符号,并不超过 10 个符号;每个符号包含 1 到 4 个非空字符。
之后一行给出一个正整数 K,为用户请求的个数。随后 K 行,每行给出一个用户的符号选择,顺序为左手、左眼、口、右眼、右手——这里只给出符号在相应集合中的序号(从 1 开始),数字间以空格分隔。
输出格式:
对每个用户请求,在一行中输出生成的表情。若用户选择的序号不存在,则输出 Are you kidding me? @\/@。
输入样例:
[╮][╭][o][~\][/~] [<][>]
[╯][╰][^][-][=][>][<][@][⊙]
[Д][▽][_][ε][^] ...
4
1 1 2 2 2
6 8 1 5 5
3 3 4 3 3
2 10 3 9 3
输出样例:
╮(╯▽╰)╭
<(@Д=)/~
o(^ε^)o
Are you kidding me? @\/@
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <ctime>
#include <cctype>
#include <bitset>
#include <utility>
#include <sstream>
#include <complex>
#include <iomanip>
#include <numeric>
#include<unordered_set>
#include <climits>//INT_100010n
//#include<bits/stdc++.h>
#define PP pair<ll,int>
#define inf 0x3f3f3f3f
#define INF 0x7fffffff;
#define llinf 0x3f3f3f3f3f3f3f3fll
#define dinf 1000000000000.0
#define PI 3.1415926
#define LL unsigned int
#define mod 1000000007
//#define wc 1e-8
typedef long long ll;
using namespace std;
vector<vector<string> >p;
int main()
{
for(int i=0; i<3; i++)
{
string s;
getline(cin,s);
vector<string>q;
int j=0;
int k=0;
while(j<(int)s.length())
{
if(s[j]=='[')
{
while(k++<(int)s.length())
{
if(s[k]==']')
{
q.push_back(s.substr(j+1,k-j-1));
break;
}
}
}
j++;
}
p.push_back(q);
}
int n,a,b,c,d,e;
scanf("%d",&n);
for(int i=0; i<n; i++)
{
scanf("%d%d%d%d%d",&a,&b,&c,&d,&e);
if(p[0].size()<a||p[1].size()<b||p[2].size()<c||p[1].size()<d||p[0].size()<e||a<1||b<1||c<1||d<1||e<1)
{
cout<<"Are you kidding me? @\\/@"<<endl;
continue;
}
cout<<p[0][a-1]<<"("<<p[1][b-1]<<p[2][c-1]<<p[1][d-1]<<")"<<p[0][e-1]<<endl;
}
return 0;
}