UVa 483 Word Scramble
1 #include <stdio.h> 2 #include <string> 3 #include <iostream> 4 #include <algorithm> 5 #include <sstream> 6 using namespace std ; 7 int main () 8 { 9 string line ; 10 while ( getline ( cin , line )) 11 { 12 string str [ 1000 ]; 13 stringstream ss ( line ); 14 int x = 0 ; 15 while ( ss >> str [ x ]) x ++; 16 for ( int i = 0 ; i < x ; i ++) 17 { 18 ...

留言
張貼留言