码迷,mamicode.com
首页 >  
搜索关键字:io    ( 172858个结果
BestCoder Round #1 第一题 逃生
// 等了好久,BESTCODER 终于出来了、、像咋这样的毕业的人、、就是去凑凑热闹// 弱校搞acm真是难,不过还是怪自己不够努力// 第一题是明显的拓扑排序,加了了个字典序限制而已// 用优先队列就可以搞定了#include #include #include #include #includ...
分类:其他好文   时间:2014-07-21 00:14:33    阅读次数:325
POJ2421 & HDU1102 Constructing Roads(最小生成树)
嘎唔!~又一次POJ过了HDU错了。。。不禁让我想起前两天的的Is it a tree? orz。。这次竟然错在HDU一定要是多组数据输入输出!(无力吐槽TT)。。题目很简单,炒鸡水!题意:告诉你每个村庄之间的距离,和几组已经联通的村庄,求使所有村庄联通所要建的道路的最短距离。很简单,用最小生成.....
分类:其他好文   时间:2014-07-21 00:11:36    阅读次数:324
Convert Sorted Array to Binary Search Tree
/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; ...
分类:其他好文   时间:2014-07-21 00:11:12    阅读次数:254
Android TextView文字透明度和背景透明度设置
textview1.setTextColor(Color.argb(255, 0, 255, 0)); //文字透明度控件设为半透明:控件名.getBackground().setAlpha(int); int 在0-255之间package net.android.alpha;import a.....
分类:移动开发   时间:2014-07-21 00:10:29    阅读次数:288
ExeCuteManager
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;using WindowsFormsApplication3.Jobs;using Win...
分类:其他好文   时间:2014-07-21 00:09:45    阅读次数:267
windowSoftInputMode
有个问题困扰我一晚上,每次进入Activity后,EditText自动获得焦点弹出软键盘,键盘遮挡listView,使得无法显示最后一条消息。我在edittext点击事件中也设定了,listView.setSelection,选中最后一条数据,可是每次需要点击两下才会显示最新消息,最后在window...
分类:Windows程序   时间:2014-07-20 22:33:21    阅读次数:311
POJ 3678
这道题唯一一个注意的地方是,如出现X\/Y=0这种关系时,X=0,Y=0。已经是可以肯定的关系了,所以可以连边X->-X。我也错了上面这地方。看来,还不够。以后要细心才好。 1 #include 2 #include 3 #include 4 #include 5 #include...
分类:其他好文   时间:2014-07-20 22:33:00    阅读次数:267
【leetcode】com/problems/surrounded-regions/
dfs 栈溢出,bfs超时,用dfs非递归就不溢出了,前后写了1一个星期class node{ int i; int j; public node(int i1,int j1) { i=i1; j=j1; ...
分类:其他好文   时间:2014-07-20 22:32:17    阅读次数:244
Poj 2263 Heavy Cargo Floyd 求最大容量路
f[i][j] = max(f[i][j],min(f[i][k],f[j][k]))#include #include #include #include #include #include #include #include #include #include #include #include...
分类:其他好文   时间:2014-07-20 22:31:27    阅读次数:243
swift 函数.和匿名函数
函数注意: 没有定义返回类型的函数会返回特殊的值,叫 Void。它其实是一个空的元组(tuple),没有任何元素,可以写成()。使用元组作为返回参数,返回多个参数 func count(string: String) -> (vowels: Int, consonants: Int, others....
分类:其他好文   时间:2014-07-20 22:28:58    阅读次数:270
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!