码迷,mamicode.com
首页 >  
搜索关键字:input/output error出错问题    ( 1738个结果
BZOJ_1408_[Noi2002]Robot_数学
Description Input Output Sample Input 3 2 1 3 2 5 1 Sample Output 8 6 75 HINT 90号机器人有10个老师,加上它自己共11个。其中政客只有15号;军人有3号和5号;学者有8个,它们的编号分别是:2,6,9,10,18,30, ...
分类:其他好文   时间:2018-04-28 16:58:17    阅读次数:149
51Nod 不重叠的线段(贪心)
X轴上有N条线段,每条线段有1个起点S和终点E。最多能够选出多少条互不重叠的线段。(注:起点或终点重叠,不算重叠)。 例如:[1 5][2 3][3 6],可以选[2 3][3 6],这2条线段互不重叠。 Input Output Input示例 Output示例 ...
分类:其他好文   时间:2018-04-27 13:28:58    阅读次数:87
515Nod 1126 求递推序列的第n项【矩阵快速幂】
有一个序列是这样定义的:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. 给出A,B和N,求f(n)的值。 Input Output Input示例 Output示例 ...
分类:其他好文   时间:2018-04-27 12:09:12    阅读次数:150
强连通图(tarjan)模板和详解
来一道裸代码。输入:一个图有向图。输出:它每个强连通分量。 这个图就是刚才讲的那个图。一模一样。 input: 6 8 1 3 1 2 2 4 3 4 3 5 4 6 4 1 5 6 output: 6 5 3 4 2 1 代码: 还有各大理解网站: (杂着看,就可以看懂) http://blog. ...
分类:其他好文   时间:2018-04-23 22:43:49    阅读次数:217
leecode---07---数字整除取余操作,取余整除---翻转一个整数复件
https://leetcode.com/problems/reverse-integer/description/ 题意 将一个整数进行翻转。 Example 1: Input: 123 Output: 321 Input: 123 Output: 321 Example 2: Input: -1 ...
分类:其他好文   时间:2018-04-22 13:10:03    阅读次数:157
77. Combinations(回溯)
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. Example: Input: n = 4, k = 2 Output: [ [2,4], [3,4], [2,3], ...
分类:其他好文   时间:2018-04-21 17:45:15    阅读次数:166
628. Maximum Product of Three Numbers
Given an integer array, find three numbers whose product is maximum and output the maximum product. Example 1: Input: [1,2,3] Output: 6 Example 2: Inp ...
分类:其他好文   时间:2018-04-15 16:26:08    阅读次数:130
Gym 100792 King's Rout 拓扑排序
K. King's Rout time limit per test 4.0 s memory limit per test 512 MB input standard input output standard output K. King's Rout time limit per test 4 ...
分类:编程语言   时间:2018-04-09 23:14:34    阅读次数:209
IO流
IO(Input Output)流 IO流用来处理设备之间的数据传输 Java对数据的操是通过对流的方式 Java用于操作流对象都在IO包中 流按照操作数据分为两种:字节流和字符流 流按照流向分为:输入流和输出流 字节流的抽象基类:InputStream,OutStream 字符流的抽象基类:Rea ...
分类:其他好文   时间:2018-04-07 12:54:30    阅读次数:139
BZOJ_1486_[HNOI2009]最小圈_01分数规划
BZOJ_1486_[HNOI2009]最小圈_01分数规划 Description Input Output Sample Input 4 5 1 2 5 2 3 5 3 1 5 2 4 3 4 1 3 Sample Output 3.66666667 二分答案,边权减去答案,判负环即可。 然而s ...
分类:其他好文   时间:2018-04-02 23:51:31    阅读次数:190
1738条   上一页 1 ... 72 73 74 75 76 ... 174 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!