?? 2872.txt
字號:
Source
Problem Id:2872 User Id:fzk
Memory:4324K Time:359MS
Language:C++ Result:Accepted
Source
#include <stdio.h>
#include <set>
#include <string>
#include <vector>
using namespace std;
set<string> s;
vector<string> v;
int main( ) {
int n, m, i, j;
char w[1000];
scanf( "%d", &n );
while( n-- ) {
scanf( "%s", w );
s.insert( w );
}
scanf( "%d", &m );
for( i=1; i<=m; i++ ) {
v.clear( );
while( 1 ) {
scanf( "%s", w );
if( w[0] == '-' && w[1] == '1' && !w[2] )
break;
if( s.find( w ) == s.end() )
v.push_back( w );
}
if( v.empty() )
printf( "Email %d is spelled correctly.\n", i );
else {
printf( "Email %d is not spelled correctly.\n", i );
for( j=0; j<v.size(); j++ )
printf( "%s\n", v[j].c_str() );
}
}
printf( "End of Output\n" );
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -