/*
ID: little71
PROG: namenum
LANG: C++
*/
#include <iostream>
#include<string>
#include<fstream>
#include<cmath>
using namespace std;
ifstream fin("namenum.in");
ofstream fout("namenum.out");
int main()
{
string N; fin>>N;
int i, n=N.length();
int a[n];
bool flag=false;
bool have=false;
ifstream fin("dict.txt");
string name;
while(!flag)
{
fin>>name;
if(fin.eof())break;
if(n!=name.length())continue;
for(i=0;i<n;++i)
{
if(name[i]=='Q'|| name[i]=='Z')a[i]=0;
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载