1 条题解
-
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
信息
- ID
- 1745
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 10
- 标签
- (无)
- 递交数
- 5
- 已通过
- 2
- 上传者