摘要:
题意:将输入的数由大到小排列(没有重复的),最少能排多少.例如:1 3 4 5 2 3 4 。则能排两个分别是 (1 2 3 4 5)和(3 4)。#include<cstdio>#include<cstring>#include<cstdlib>#include<iostream>using namespace std;typedef struct TrieNode{ int nm; struct TrieNode *child[10]; TrieNode() { nm = 0; memset(child , 0, sizeof(child.. 阅读全文