摘要:
点击打开链接 ice_cream's world is a rich country, it has many fertile lands. Today, the queen of ice_cream wants award land to diligent ACMers. So there are 阅读全文
摘要:
1并查集(8-2) int find(int x) //查找我(x)的掌门 { int r=x; //委托 r 去找掌门 while (pre[r ]!=r) //如果r的上级不是r自己(也就是说找到的大侠他不是掌门 = =) r=pre[r ] ; // r 就接着找他的上级,直到找到掌门为止。 阅读全文
摘要:
点击打开链接素数求和问题时间限制:3000 ms | 内存限制:65535 KB难度:2描述现在给你N个数(0int main(){ int i; scanf("%d",&i); while(i--) { int n; int sum=0; scanf("%d",&n); while(n... 阅读全文
摘要:
点击打开链接Sometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party where th... 阅读全文