日期:2014-05-17 浏览次数:20829 次
class Program
{
static void Main(string[] args)
{
while (true)
{
Stopwatch timer = new Stopwatch();
timer.Reset();
HashSet<string> ht = new HashSet<string>();
timer.Start();
for (int i = 0; i <= 50000; i++)
{
string apps = "112,2,3,4,5,6,7,8,9,10,112,12,13,14,15,16,17,18,19,20,";
char[] appCharArr = apps.ToCharArray();
int length = appCharArr.Length;
int startIndex = 0;
char[] tempcharArr = new char[] { '\0', '\0', '\0', '\0' };
#region
for (int j = 0; j < length; j++)
{
char c = appCharArr[j];
if (c == ',')
{