当时我第一次看的时候就惊呆了,,,,简直是太巧妙了!!!!以前还真不知道并查集可以判断环的个数!!!!!
仔细想一想,,,sohappy
#include
#include
#include
#include
using namespace std;
int pre[10001];
int chushihua(int n)
{
for(int i=0;i
}
i...
分类:
其他好文 时间:
2015-08-13 12:11:18
阅读次数:
157
Ice_cream’s world III
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1237 Accepted Submission(s): 408
Problem Description
ice_cream...
分类:
其他好文 时间:
2015-08-13 12:10:00
阅读次数:
117
SQLite?3.8.4.3: 21-5.0-Lollipop 20-Android L Developer Preview SQLite?3.7.11: 19-4.4-KitKat 18-4.3-Jelly Bean 17-4.2-Jelly Bean 16-4.1-Jelly Bean SQLite?3.7.4: 15-4.0.3-Ice Cream Sandwich 14-4.0...
分类:
移动开发 时间:
2015-08-05 22:48:00
阅读次数:
287
定义抽象节点类Node:
package cn.wzbrilliant.datastructure;
/**
* 节点
* @author ice
*
*/
public abstract class Node {
private Node next;
public Node(){
next=null;
}
public void setNext(Node next...
分类:
编程语言 时间:
2015-08-04 00:43:53
阅读次数:
133
定义抽象节点类Node: 1 package cn.wzbrilliant.datastructure; 2 3 /** 4 * 节点 5 * @author ice 6 * 7 */ 8 public abstract class Node { 9 private Node ne...
分类:
编程语言 时间:
2015-08-04 00:37:43
阅读次数:
130
Ice_cream's world I
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 848 Accepted Submission(s): 494
Problem Description
ice_cream's...
分类:
其他好文 时间:
2015-07-30 21:25:19
阅读次数:
142
Ice_cream's world ITime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 839Accepted Submission(s): 488P...
分类:
其他好文 时间:
2015-07-29 22:50:37
阅读次数:
261
Ice_cream's world I
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 814 Accepted Submission(s): 478
Problem Description
ice_cream's ...
分类:
其他好文 时间:
2015-07-29 21:30:11
阅读次数:
125
Ice_cream’s world III Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1146Accepted Submission(s):...
分类:
其他好文 时间:
2015-07-27 18:25:01
阅读次数:
105
Description
You play a computer game. Your character stands on some level of a multilevel ice cave. In order to move on forward, you need to descend one level lower and the only way to do this is t...
分类:
其他好文 时间:
2015-07-26 22:46:04
阅读次数:
346