【链接】:CF987A
【分析】:运用map
【代码】:
#include <iostream>
#include<queue>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;
#define N 100010
#define M 2005
const int INF = 0x3f3f3f3f;
#define rep(i,a,b) for(int i=(a); i<(b); i++)
#define ll long long
int n,m,x,y;
char a[M][M];
int k[M];
string s;
map<string, string> mp;
int main()
{
mp["red"] = "Reality";
mp["purple"] = "Power";
mp["green"] = "Time";
mp["blue"] = "Space";
mp["orange"] = "Soul";
mp["yellow"] = "Mind";
scanf("%d",&n);
for( int i =1; i <= n; ++i )
{
cin>>s;
mp[s]="";
}
cout<<6-n<<endl;
for(auto pp:mp)
if(pp.second != "")
cout<<pp.second<<endl;
}