一:正则
代码
static
void
Main(
string
[] args)
{
MatchCollection mc = Regex.Matches(Console.ReadLine(), @" (\S)+ " );
for ( int i = mc.Count - 1 ; i >= 0 ; i -- )
{
Console.Write(mc[i].Value);
Console.Write( ' ' );
}
}
{
MatchCollection mc = Regex.Matches(Console.ReadLine(), @" (\S)+ " );
for ( int i = mc.Count - 1 ; i >= 0 ; i -- )
{
Console.Write(mc[i].Value);
Console.Write( ' ' );
}
}
二:其它