1 solutions
-
0
C++ :
#include <iostream> #include <sstream> #include <algorithm> #include <string> #include <cstring> #include <cstdio> using namespace std; int main(){ #ifndef ONLINE_JUDGE freopen("in", "r", stdin); #endif int nCase = 0; char ch; while(scanf("%c ", &ch) != EOF){ if(ch !='\n'){ if(nCase++) cout <<endl; string str, s; getline(cin, str); istringstream ss(str); bool flag = true; while(ss >>s){ if(s.find(ch) != s.npos){ cout <<s <<endl; flag = false; } } if(flag){ cout <<"No!" <<endl; } } } return 0; }
- 1
Information
- ID
- 1328
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- (None)
- Tags
- (None)
- # Submissions
- 0
- Accepted
- 0
- Uploaded By