标签:
#include <algorithm> #include <bitset> #include <complex> #include <deque> #include <exception> #include <fstream> #include <functional> #include <iomanip> #include <ios> #include <iosfwd> #include <iostream> #include <istream> #include <iterator> #include <limits> #include <list> #include <locale> #include <map> #include <memory> #include <new> #include <numeric> #include <ostream> #include <queue> #include <set> #include <sstream> #include <stack> #include <stdexcept> #include <streambuf> #include <string> #include <typeinfo> #include <utility> #include <valarray> #include <vector> #ifdef __GXX_EXPERIMENTAL_CXX0X__ #include <array> #include <atomic> #include <chrono> #include <condition_variable> #include <forward_list> #include <future> #include <initializer_list> #include <mutex> #include <random> #include <ratio> #include <regex> #include <scoped_allocator> #include <system_error> #include <thread> #include <tuple> #include <typeindex> #include <type_traits> #include <unordered_map> #include <unordered_set> #endif using namespace std; char a[1001000]; int p; int init() { p=p+2; printf("Ok"); while( (a[p]>='0' && a[p]<='9') || (a[p]>='A' && a[p]<='E') ) printf("%c",a[p++]); printf("\n"); return 0; } int main() { while(~scanf("%s",a)) { p=0; while (a[p]!='\0') { if (a[p]=='0' && a[p+1]=='k') { if (a[p+2]>='0' && a[p+2]<='9') init(); else if (a[p+2]>='A' && a[p+2]<='E') init(); } p++; } } return 0; }
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/u012349696/article/details/46942863