
字符串
slashXX_xu
量变终会质变。坚持!
展开
-
UVA - 10115 - Automatic Editing
#include #include #include #include using namespace std;int main(){ int nRule; while ( cin >>nRule ) { if ( nRule == 0 ) { break; } // end if // ignore the \n that just input原创 2014-04-15 23:57:18 · 559 阅读 · 0 评论 -
UVA - 361 - Automatic Poetry
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=96&page=show_problem&problem=1302原创 2014-04-12 19:59:11 · 580 阅读 · 0 评论 -
UVA - 537 - Artificial Intelligence
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=96&page=show_problem&problem=478#include #include #include #include #include using namespace std;int m原创 2014-04-12 22:02:24 · 652 阅读 · 0 评论 -
UVA - 10010 - Where's Waldorf
#include #include #include #include using namespace std;const int MAXN = 50;int m, n;char sz[MAXN+1][MAXN+1];void strToLower(char str[]){ for ( int i=0; i<strlen(str); i++ ) { str[i] =原创 2014-04-12 19:08:13 · 517 阅读 · 0 评论 -
UVA - 401 - Palindromes
#include #include #include using namespace std;const int MAXLENGTH = 20;int main(){ char LETTER_REVERSE[26] = { 'A', ' ', ' ', ' ', '3', ' ', ' ', 'H', 'I', 'L', ' ', 'J', 'M', ' ',原创 2014-04-12 13:56:01 · 408 阅读 · 0 评论 -
UVA - 409 - Excuses, Excuses
#include #include #include #include #include #include using namespace std;const int MAXN = 20;void fun_str(string &str){ for ( int i=0; i<str.length(); i++ ) { if ( isalpha(str[i]) )原创 2014-04-13 16:07:18 · 455 阅读 · 0 评论