锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲欧美成人综合久久久,国产一区二区久久久,久久久艹http://m.shnenglu.com/issayandfaye/archive/2009/11/20/100677.html#101470tinytinyFri, 20 Nov 2009 07:13:00 GMThttp://m.shnenglu.com/issayandfaye/archive/2009/11/20/100677.html#101470

tiny 2009-11-20 15:13 鍙戣〃璇勮
]]>
re: 铻烘棆鐭╅樀鐨勭畻娉?/title><link>http://m.shnenglu.com/issayandfaye/archive/2009/11/19/100976.html#101375</link><dc:creator>iSsay</dc:creator><author>iSsay</author><pubDate>Thu, 19 Nov 2009 05:44:00 GMT</pubDate><guid>http://m.shnenglu.com/issayandfaye/archive/2009/11/19/100976.html#101375</guid><description><![CDATA[@xuxiandi <br>鎴戝湪鎯沖鏋滄病鏈夋暟瀛﹀叕寮忚鎬庝箞妯℃嫙鍛?<br> <br>鐜板湪榪樻兂涓嶅嚭鏉ワ紝鍥犱負寰幆鎺у埗涓嶅ソ寮勶紝瑕佺敤鍒板緢澶氬彉閲忔爣璁?img src ="http://m.shnenglu.com/issayandfaye/aggbug/101375.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/issayandfaye/" target="_blank">iSsay</a> 2009-11-19 13:44 <a href="http://m.shnenglu.com/issayandfaye/archive/2009/11/19/100976.html#101375#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>re: 铻烘棆鐭╅樀鐨勭畻娉?/title><link>http://m.shnenglu.com/issayandfaye/archive/2009/11/18/100976.html#101335</link><dc:creator>xuxiandi</dc:creator><author>xuxiandi</author><pubDate>Wed, 18 Nov 2009 09:02:00 GMT</pubDate><guid>http://m.shnenglu.com/issayandfaye/archive/2009/11/18/100976.html#101335</guid><description><![CDATA[浠庝腑闂村悜澶栬漿....涓嶅氨鏄粠澶栧悜涓棿杞?.鐒跺悗閫掑噺鍚?<img src ="http://m.shnenglu.com/issayandfaye/aggbug/101335.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/issayandfaye/" target="_blank">xuxiandi</a> 2009-11-18 17:02 <a href="http://m.shnenglu.com/issayandfaye/archive/2009/11/18/100976.html#101335#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>re: 铻烘棆鐭╅樀鐨勭畻娉?/title><link>http://m.shnenglu.com/issayandfaye/archive/2009/11/17/100976.html#101214</link><dc:creator>qinqing1984</dc:creator><author>qinqing1984</author><pubDate>Tue, 17 Nov 2009 08:39:00 GMT</pubDate><guid>http://m.shnenglu.com/issayandfaye/archive/2009/11/17/100976.html#101214</guid><description><![CDATA[榪欎釜妯″瀷姣旇緝綆鍗?浠庝腑闂村悜澶栬漿,灝辨湁鐐瑰鏉備簡<img src ="http://m.shnenglu.com/issayandfaye/aggbug/101214.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/issayandfaye/" target="_blank">qinqing1984</a> 2009-11-17 16:39 <a href="http://m.shnenglu.com/issayandfaye/archive/2009/11/17/100976.html#101214#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>re: POJ1002閾捐〃綆楁硶[鏈櫥褰昡http://m.shnenglu.com/issayandfaye/archive/2009/11/16/100347.html#101156dskitdskitMon, 16 Nov 2009 14:44:00 GMThttp://m.shnenglu.com/issayandfaye/archive/2009/11/16/100347.html#101156using std::cin;
using std::cout;
using std::endl;

#ifdef DEBUG
#include<string>
using std::string;
using std::freopen;
string input_file_name = __FILE__;
#endif

//here add other file need to included, and declare namespace need to use.
#include<stdlib.h>
#include<string.h>
#include<stdio.h>
using namespace std;
//here declare global variables;
char dictionary[26] = {2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 0, 7, 7, 8, 8, 8, 9, 9, 9, 0};
char no[50];
char oarray[10];
bool flag;

struct Trie_node
{
int count;
Trie_node* next[10];
};

Trie_node root;

Trie_node node_pool[200002];
int index;
Trie_node* p;

void insert(char* s)
{
p = &root;
while(*s != '\0')
{
if(p->next[*s - '0'] == NULL)
p->next[*s - '0'] = &node_pool[index++];
p = p->next[*s - '0'];
++s;
}

++p->count;
}

void inline travel(Trie_node* node, int c)
{
for(int i = 0; i < 10; ++i)
{

if(node->next[i] == NULL)
continue;

oarray[c] = (char)(i + '0');

if(c >= 6)
{
if(node->next[i]->count > 1)
{
flag = true;
printf("%c%c%c-%c%c%c%c %d\n", oarray[0], oarray[1],
oarray[2], oarray[3],
oarray[4], oarray[5],
oarray[6], node->next[i]->count);
}
}
else
{
travel(node->next[i], c + 1);
}
}

}


//here add funtions.
void inline format_number(char* no)
{
//int len = strlen(no);
//printf("%s\n", no);
int count = 0;
int sum = 0;
for(int i = 0; no[i] != '\0'; ++i)
{
++sum;
if(no[i] >= 'A' && no[i] <= 'Z')
{
no[i] = '0' + dictionary[no[i] - 'A'];
}
else if(no[i] == '-')
{
++count;
}

if(no[i] != '-')
no[i - count] = no[i];

}
no[sum - count] = '\0';
//printf("%s\n", no);
}

int main(int argc, char* argv[])
{
#ifdef DEBUG
if(!freopen((input_file_name.substr(0, input_file_name.size() - 4) + ".in").c_str(), "r", stdin))
{ cout << "input data error, not found input file." << endl; return -1; }
#endif

//here add code for solve problem.
int n = 0;
//input
scanf("%d", &n);
flag = false;
index = 0;
getchar();
for(int i = 0; i < n; ++i)
{
gets(no);
//puts(no);
format_number(no);
insert(no);
}

travel(&root, 0);

if(!flag)
{
printf("No duplicates.\n");
}

return 0;
}


dskit 2009-11-16 22:44 鍙戣〃璇勮
]]>
国产午夜久久影院| 无码人妻精品一区二区三区久久久| 中文字幕久久久久人妻| 免费精品久久天干天干| 国产综合久久久久久鬼色| 99久久国产综合精品成人影院| 日本欧美国产精品第一页久久| 精品国产乱码久久久久久人妻| 狠狠色丁香婷综合久久| 99久久国产主播综合精品| 四虎国产精品免费久久| 久久久久久国产精品免费无码| 一级做a爰片久久毛片免费陪| 久久久久久人妻无码| 久久99精品久久久久久9蜜桃 | 国内精品伊人久久久久妇| 无码人妻精品一区二区三区久久久| 国产精品成人99久久久久91gav| 日韩精品久久久久久免费| 噜噜噜色噜噜噜久久| 狠狠人妻久久久久久综合| 亚洲人成网亚洲欧洲无码久久| 国产日韩欧美久久| 久久精品国产一区| 久久水蜜桃亚洲av无码精品麻豆| 日本欧美国产精品第一页久久| 国产精品综合久久第一页| 国产91色综合久久免费| 久久精品人人做人人爽电影| 精品综合久久久久久97| 少妇人妻综合久久中文字幕| 久久97久久97精品免视看秋霞| 久久久久国产精品| 久久精品国产一区| 久久精品国产影库免费看| 国产午夜久久影院| 狠狠色丁香婷综合久久| 91久久精品国产91性色也| 国产精品激情综合久久| 久久93精品国产91久久综合| 久久精品国产精品亜洲毛片|