Demo entry 6657379

2333333

   

Submitted by anonymous on Nov 03, 2017 at 07:49
Language: C++. Code size: 407 Bytes.

	clock_t ends = clock();
	//输出单词表
	for (int i = 0; i < NUM; i++)
	{
		if (map[i] != "")
			cout << map[i] << " " << word_occur[i] << endl;
	}

	cout << "单词总数:" << word_count << endl;
	cout << "碰撞次数:" << bomb_count << endl;
	cout << "堆积比例:" << (double)bomb_count / NUM << endl;
	cout << "运行时间:" << (double)(ends - start) / CLOCKS_PER_SEC << "秒" << endl << endl;
	cout << "按任意键退出...";
	cin.get();

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).