码迷,mamicode.com
首页 >  
搜索关键字:you have two operati    ( 41000个结果
NBUT The Sum of F(x) and G(x)
问题描述 When Deathmoon played MC game, he faced a math problem. When he found a ancient tomb and came in, he found two polynomials f(x) and g(x) no the wall, only did he calculate f(x) + g(x) correctly ...
分类:其他好文   时间:2014-05-10 09:57:54    阅读次数:300
HDU 1102 && POJ 2421 Constructing Roads (经典MST~Prim)
链接:http://poj.org/problem?id=2421  或   http://acm.hdu.edu.cn/showproblem.php?pid=1102 Problem Description There are N villages, which are numbered from 1 to N, and you should build some roads ...
分类:其他好文   时间:2014-05-10 09:34:09    阅读次数:389
codechef Three Way Communications 题解
The Chef likes to stay in touch with his staff. So, the Chef, the head server, and the sous-chef all carry two-way transceivers so they can stay in constant contact. Of course, these transceivers have...
分类:其他好文   时间:2014-05-10 09:11:21    阅读次数:334
FFmpeg SDK开发模型之一:解码器
简介 本例讲解了如何使用ffmpeg SDK解码媒体文件; 一、源代码 #include #include #include #include #ifdef HAVE_AV_CONFIG_H #undef HAVE_AV_CONFIG_H #endif #include "libavcodec/avcodec.h" #define INBUF_SIZE 4...
分类:其他好文   时间:2014-05-10 08:38:17    阅读次数:479
利用PHPExcel转Excel柱形图
这在附另一个转柱形图的效果及代码. 原PHP报表效果: 转成Excel后的效果: 附上代码: <?php /** * PHPExcel * * Copyright (C) 2006 - 2014 PHPExcel * * This library is free software; you can redistribute it and/or * modify ...
分类:Web程序   时间:2014-05-10 02:19:56    阅读次数:553
水题~~~~HDU 4788
Description Yesterday your dear cousin Coach Pang gave you a new 100MB hard disk drive (HDD) as a gift because you will get married next year. But yo....
分类:其他好文   时间:2014-05-07 10:04:47    阅读次数:382
水题一枚
Description Given a code (not optimized), and necessary inputs, you have to find the output of the code for the inputs. The code is as follows: int a,...
分类:其他好文   时间:2014-05-07 09:56:16    阅读次数:310
ProjectEuler_P11
Problem:In the 2020 grid below, four numbers along a diagonal line have been marked in red.08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08...
分类:其他好文   时间:2014-05-06 14:35:55    阅读次数:460
Leetcode: Two Sum
这道题看似简单,其实很坑爹啊,动不动就是Time Limit Exceeded, 比如我下面这段TLE的代码,我感觉方法是对的,但是too naive,算法复杂度到了O(N^2),自然就TLE了而且有一些小语法错误需要注意:for(runner=current+1;;)不能用>;一定所有的case都...
分类:其他好文   时间:2014-05-06 11:31:09    阅读次数:405
Leetcode: Reverse Integer
一次通过,它的spoiler里面的提示有两个:1. 末尾为0的情况,这个考虑到了2.Did you notice that the reversed integer might overflow? Assume the input is a 32-bit integer, then the reve...
分类:其他好文   时间:2014-05-06 11:10:45    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!