题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2033题目大意:类似于a+b,只不过换成了时间的加减,超过60减去,然后在相应的分和时加一!没有太大的格式要求~ 1 #include 2 int main () 3 { 4 int AH,AM...
分类:
其他好文 时间:
2014-07-22 00:24:33
阅读次数:
185
设有一个二维数组a,它有3行4列。它的定义为int a[3][4]={{1,3,5,7},{9,11,13,15},{17,18,21,23}};a是一个数组名。a数组包含3行,即3个元 素:a[0],a[1],a[2]。而每一元素又是一个一维数组, 它包含4个元素(即4个列元素),例如,a[0]所...
分类:
编程语言 时间:
2014-07-22 00:24:33
阅读次数:
247
1.package com.gufengxiachen.java.reflectiontest; public class Person { private String name; private int age; private static int total; pub...
分类:
编程语言 时间:
2014-07-22 00:24:33
阅读次数:
287
心电图内容:心脏在每个心动周期中,由起搏点、心房、心室相继兴奋,伴随着生物电的变化,通过心电描记器从体表引出多种形式的电位变化的图形(简称 ECG).心电图是心脏兴奋的发生、传播及恢复过程的客观指标. 心脏周围的组织和体液都能导电,因此可将人体看成为一个具有长、宽、厚3度空间的容积导体.心脏好比电源...
分类:
其他好文 时间:
2014-07-22 00:23:37
阅读次数:
445
var SingleTon = (function(){ var initinstance; function myConstructor(){ return{ publicMethod : function(){ alert(this.value); }...
分类:
编程语言 时间:
2014-07-22 00:23:37
阅读次数:
185
排列组合:C(m,n),m为给定数列,n为要从数列m中取元素的数量,GetResult()获取所有不重复的组合。 public class MathCombination { List list; int count = 0; private Math...
分类:
其他好文 时间:
2014-07-22 00:23:35
阅读次数:
173
synchronized 关键字,代表这个方法加锁,相当于不管哪一个线程A每次运行到这个方法时,都要检查有没有其它正在用这个方法的线程B(或者C D等),有的话要等正在使用这个方法的线程B(或者C D)运行完这个方法后再运行此线程A,没有的话,直接运行 它包括两种用法:synchronized .....
分类:
编程语言 时间:
2014-07-22 00:23:35
阅读次数:
547
Server 端:package foundation;import java.io.*;import java.net.*;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;publi...
分类:
编程语言 时间:
2014-07-22 00:23:34
阅读次数:
280
G. Count the ColorsTime Limit: 2000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainPainting some colored segments on a line, ...
分类:
其他好文 时间:
2014-07-22 00:23:34
阅读次数:
220
Insertion Sort ListSort a linked list using insertion sort.算法思路:最基本的插入排序,时间复杂度O(n*n),空间复杂度O(1)代码: 1 public class Solution { 2 public ListNode inse...
分类:
其他好文 时间:
2014-07-22 00:23:34
阅读次数:
204