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

tiny 2009-11-20 15:13 鍙戣〃璇勮
]]>
re: 铻烘棆鐭╅樀鐨勭畻娉?/title><link>http://www.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://www.shnenglu.com/issayandfaye/archive/2009/11/19/100976.html#101375</guid><description><![CDATA[@xuxiandi <br>鎴戝湪鎯沖鏋滄病鏈夋暟瀛﹀叕寮忚鎬庝箞妯℃嫙鍛?<br> <br>鐜板湪榪樻兂涓嶅嚭鏉ワ紝鍥犱負寰幆鎺у埗涓嶅ソ寮勶紝瑕佺敤鍒板緢澶氬彉閲忔爣璁?img src ="http://www.shnenglu.com/issayandfaye/aggbug/101375.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/issayandfaye/" target="_blank">iSsay</a> 2009-11-19 13:44 <a href="http://www.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://www.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://www.shnenglu.com/issayandfaye/archive/2009/11/18/100976.html#101335</guid><description><![CDATA[浠庝腑闂村悜澶栬漿....涓嶅氨鏄粠澶栧悜涓棿杞?.鐒跺悗閫掑噺鍚?<img src ="http://www.shnenglu.com/issayandfaye/aggbug/101335.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/issayandfaye/" target="_blank">xuxiandi</a> 2009-11-18 17:02 <a href="http://www.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://www.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://www.shnenglu.com/issayandfaye/archive/2009/11/17/100976.html#101214</guid><description><![CDATA[榪欎釜妯″瀷姣旇緝綆鍗?浠庝腑闂村悜澶栬漿,灝辨湁鐐瑰鏉備簡<img src ="http://www.shnenglu.com/issayandfaye/aggbug/101214.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.shnenglu.com/issayandfaye/" target="_blank">qinqing1984</a> 2009-11-17 16:39 <a href="http://www.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://www.shnenglu.com/issayandfaye/archive/2009/11/16/100347.html#101156dskitdskitMon, 16 Nov 2009 14:44:00 GMThttp://www.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 鍙戣〃璇勮
]]>
久久免费国产精品| 日韩AV毛片精品久久久| 久久精品国产亚洲AV麻豆网站| 久久综合久久美利坚合众国| 亚洲国产另类久久久精品小说| 久久天堂AV综合合色蜜桃网| 久久夜色精品国产亚洲| 三级韩国一区久久二区综合| 久久精品成人欧美大片| 伊人久久综在合线亚洲2019 | 久久亚洲精品国产精品| 69久久精品无码一区二区| 久久夜色精品国产www| 欧洲精品久久久av无码电影| 国产香蕉97碰碰久久人人| 久久久久高潮毛片免费全部播放| 国产精品九九久久精品女同亚洲欧美日韩综合区 | 思思久久精品在热线热| 中文字幕热久久久久久久| 九九久久精品无码专区| 69久久夜色精品国产69| 亚洲αv久久久噜噜噜噜噜| 久久毛片免费看一区二区三区| 色诱久久久久综合网ywww| 99久久综合国产精品免费| 久久久久一本毛久久久| 麻豆精品久久精品色综合| 欧美一区二区三区久久综合| 久久综合亚洲色一区二区三区| 久久久久无码精品| 精品国产综合区久久久久久| 国产精品久久久天天影视| 久久99国产精品尤物| 亚洲AV无一区二区三区久久| 日韩人妻无码一区二区三区久久99| 精品久久久久久无码人妻热| 久久成人影院精品777| 99久久中文字幕| 久久成人精品视频| 精品国产乱码久久久久久浪潮| 久久精品九九亚洲精品天堂|