题意:第一问:从1出发,是不是会走进一个点,然后再也到不了n。 第二问:是不是存在一个环,从1出发可以走到。对于第一问,我们可以先缩点,然后看看是不是只有一个点,出度为0,还有注意这个点包含n对于第二问,如果访问的点数sum等于缩点以后的点数,那么就是没有环了。这里需要注意的是,特判自环......
分类:
其他好文 时间:
2015-05-07 23:48:46
阅读次数:
130
out参数:如果你在一个方法中,返回多个相同类型的值的时候,可以考虑返回一个数组。但是,如果返回多个不同类型的值的时候,返回数组就不行了,那么这个时候,我们可以考虑使用out参数。out参数就侧重于在一个方法中可以返回多个不同类型的值。ref参数:能够将一个变量带入一个方法中进行改变,改变完成后,再...
int of_property_read_u8_array(const struct device_node *np, const char *propname,u8 *out_values, size_t sz);
int of_property_read_u16_array(const struct device_node *np, const char *propname,u16 *out...
分类:
系统相关 时间:
2015-05-07 22:15:53
阅读次数:
384
Android导入源码packages 中的apps出错
下载完源码后再linux 中编译框架中的app模块是不会出错的,但是加载到eclipse就会有很多错误。
Google 给用户提供的SDK 都是阉割版本的 无法使用隐藏的API,如果想要使用系统API 比如import android.os.AsyncResult;
首先需要下载源码,然后编译.编译完成后
在out/targ...
分类:
移动开发 时间:
2015-05-07 22:05:53
阅读次数:
127
(一)实验代码和截图public class MyUtil { public static String percentage2fivegrade(int grade){ if(grade0){ System.out.println(this.sh+"+"+this.xu+"i"); }else i...
分类:
其他好文 时间:
2015-05-07 20:18:14
阅读次数:
129
--RMAN-06061处理
--例行进行数据库备份检查的时候发现一个库的备份状态是completed with errors
--所以进到操作系统进行查看,发现全备日志中出现了如下的告警
archived log /opt/oracle/cisdb/archdb1/bak/cisdb2_127732_673050541.arc not found or out of sync with c...
分类:
其他好文 时间:
2015-05-07 16:56:32
阅读次数:
155
CREATE PROCEDURE的语法格式:CREATE PROCEDURE sp_name([proc_parameter[,...]])[characteristic...]routine_body其中,proc_parameter的参数如下:[IN|OUT|INOUT]param_name t...
分类:
数据库 时间:
2015-05-07 14:27:48
阅读次数:
191
When I wrote about launching a prototype of a new joind.in API, quite a few people started to try it out. My friend David Soria Parra emailed me to point out that many of the numbers in the API wer...
分类:
Web程序 时间:
2015-05-07 12:46:42
阅读次数:
127
$strlog="c:\log\applog.txt";$e=$i=$w=0$tpath=Test-Path$strlogif(!$tpath){New-Item-Path"c:\log"-ItemTypedirNew-Item-Path$strlog-ItemTypefile}Get-EventLog-LogNameApplication|Out-File$strlogswitch-Wildcard-File$strlog{"*error*"{$e++}"*info*"{$i++}"*warn*"{$w++..
分类:
系统相关 时间:
2015-05-07 12:44:57
阅读次数:
212
#include "ros/ros.h"
#include "std_msgs/String.h"//geometry_msgs
#include "geometry_msgs/Twist.h"//包含elocity space消息
#include
#include "math.h"
#include
#include
#include
#include
using namespace...
分类:
其他好文 时间:
2015-05-07 12:32:22
阅读次数:
134