zl程序教程

您现在的位置是:首页 >  其他

当前栏目

codeforces C. Design Tutorial: Make It Nondeterministic

IT Codeforces Design Make Tutorial
2023-09-14 08:57:55 时间
题意:每一个人 都有frist name 和 last name! 从每一个人的名字中任意选择
first name 或者 last name 作为这个人的编号!通过对编号的排序,得到每一个人

最终顺序!比较中的序列能否得到给定输出的序列一致!


#include iostream 

#include cstring 

#include cstdio 

#include string 

#include map 

#include algorithm 

#define N 100005

using namespace std;

int p[N];

string name[2*N];

map string, int //将每一个人名字映射到是第几个人