其他好文[总排行] [月排行] [周排行] [日排行]
Switch cases evaluate cases from top to bottom, stopping when a case succeeds.(For example,switch i {case 0:case f():}does not callfifi==0.)Note:Time ...
分类:其他好文 时间:2014-10-28 08:10:58 阅读:221
刚看到题就想用数组做,发现大多数解也是用数组做的,突然看到一个清新脱俗的解法: 1 int atoi(const char *str) { 2 3 4 5 if(*str == '\0') return 0; 6 7 int n; 8 9 ...
分类:其他好文 时间:2014-10-28 08:10:59 阅读:175
Let's explore Go's built-in support for complex numbers via thecomplex64andcomplex128types. For cube roots, Newton's method amounts to repeating:Find ...
分类:其他好文 时间:2014-10-28 08:10:08 阅读:184
开始做算法题了,从AC率最高的开始做,思路一开始就找到了要用递归,但是细节上有很多需要修炼的,基础还是要打牢固。要判断是否镜像对称,只需要每次判断根节点的左子节点的左、右儿子是否相对应的等于右子节点的右、左儿子,然后递归调用isNodeSymmetric()即可。附上解法:/** * Defini....
分类:其他好文 时间:2014-10-28 08:10:11 阅读:135
A题目大意: 给你l,r,问你在l~r之间,是否存在 a和b互质 , b和c互质 ,但是 a,c不互质 的情况;其中l#include #include #include using namespace std;long long l,r;int gcd(long long a,long long ...
分类:其他好文 时间:2014-10-28 08:08:53 阅读:237
Switch without a condition is the same asswitch true.This construct can be a clean way to write long if-then-else chains.package main import ( "fmt...
分类:其他好文 时间:2014-10-28 08:09:51 阅读:112
转载:http://blog.csdn.net/kickxxx/article/details/7088658G_INPUT和S_INPUT用来查询和选则当前的input一个video设备节点可能对应多个视频源,比如saf7113可以最多支持四路cvbs输入,如果上层想在四个cvbs视频输入间切换,...
分类:其他好文 时间:2014-10-28 08:06:05 阅读:191
国创的大致过程 这里介绍下西电国创大致的流程,其他国家级科技竞赛类似,其他学校我不了解,估计差不多。大致流程是对的,具体细节政策可能一直在改,也不一定绝对正确。 首先自己联系组队,构思项目,找指导老师。组队一般是三个人,如果是大一,好像可以再多几个,但是尽量不要太多。可以跨院组队,但是要在其中一个院申报(通院电院这些大院的名额相对比较多,不过报的人也多)。 然后报名,填写项目计划...
分类:其他好文 时间:2014-10-28 07:05:12 阅读:247
看下writer的使用浏览 public class Person{ private String name; private int age; }
分类:其他好文 时间:2014-10-28 07:03:44 阅读:154
1,关于递归还是要有时间就练习,又有些生疏了/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeN...
分类:其他好文 时间:2014-10-28 07:02:47 阅读:141
1133457133458133459148452
上一页1484515下一页
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!