题目大意:给出n个点,m条关系,按关系的从小到大排序。题目分析:拓扑排序的模板题,套模板。kahn算法:伪代码:Kahn算法:摘一段维基百科上关于Kahn算法的伪码描述: L← Empty list that will contain the sorted elementsS ← Set of al...
分类:
编程语言 时间:
2015-10-06 16:40:46
阅读次数:
264
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Cons...
分类:
其他好文 时间:
2015-10-06 12:50:14
阅读次数:
189
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;//引用namespa...
分类:
数据库 时间:
2015-09-30 00:47:16
阅读次数:
242
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;namespace CommonHelper{...
分类:
其他好文 时间:
2015-09-28 13:21:26
阅读次数:
119
producer把消息发送到消息块,consumer从块读取消息。 安装: Install-Package Microsoft.Tpl.Dataflow using System.Threading.Tasks.Dataflow; 解释: Produce方法随机生成字节,并Post到ITargetB...
分类:
其他好文 时间:
2015-09-25 13:09:48
阅读次数:
287
官网:https://github.com/caolan/async流程控制:简化十种常见流程的处理集合处理:如何使用异步操作处理集合中的数据工具类:几个常用的工具类流程控制详细说明:http://my.oschina.net/huangsz/blog/176203series(tasks, [ca...
分类:
Web程序 时间:
2015-09-24 12:55:43
阅读次数:
481
Gradle Task入门演示二 https://docs.gradle.org/current/userguide/more_about_tasks.html Defining tasks 有多种方式可以定义task,现在再来看下面这几种方式, task(helloTask)?<<?{
????println?"hell...
分类:
其他好文 时间:
2015-09-22 20:35:21
阅读次数:
302
程序代码:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows;usingSystem.Windo.....
分类:
其他好文 时间:
2015-09-22 18:16:31
阅读次数:
247
1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Linq; 5 using System.Text; 6 using System.Threading.Tasks; 7 8.....
分类:
其他好文 时间:
2015-09-20 13:04:31
阅读次数:
136
using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Cons...
分类:
其他好文 时间:
2015-09-20 11:43:47
阅读次数:
181