最大公约数:代码: 1 #include 2 #include 3 long long gcd(int x,int y ) 4 { 5 return (y==0)?x:gcd(y,x%y); 6 } 7 8 int main() 9 {10 int m,n;11 whi...
分类:
其他好文 时间:
2014-07-24 22:08:12
阅读次数:
178
switch(参数值){ case value: [default://可选 defaultStatements;]}参数值类型必须是这几种类型之一:int,byte,char,shortswitch为什么只能用int,short,byte,char,而不能用long,String呢?因为switc...
分类:
其他好文 时间:
2014-07-24 22:03:52
阅读次数:
209
Long Long MessageTime Limit:4000MSMemory Limit:131072KTotal Submissions:20412Accepted:8427Case Time Limit:1000MSDescriptionThe little cat is majoring ...
分类:
其他好文 时间:
2014-07-24 21:42:22
阅读次数:
256
NPTL是一个1×1的线程模型,即一个线程对于一个操作系统的调度进程,优点是非常简单。而其他一些操作系统比如Solaris则是MxN的,M对应创建的线程数,N对应操作系统可以运行的实体。(Ntgid;957 }1100 asmlinkage long sys_gettid(void)1101 {11...
分类:
系统相关 时间:
2014-07-24 21:42:02
阅读次数:
366
css样式:.animate{ width:65px; height:40px; background:#92B901; color:#ffffff; position:absolute; font-weight:bold; font:12px '微软雅黑'...
分类:
其他好文 时间:
2014-07-24 17:11:05
阅读次数:
295
传说中的Mozilla推荐Java代码/*mozilla.orgBaseStyles*maintainedbyfantasai*//*Suggestedorder:*display*list-style*position*float*clear*width*height*margin*padding...
分类:
Web程序 时间:
2014-07-24 17:07:25
阅读次数:
337
同上题一样,求连续子序列的最大和而且比上题还要简单一些,用不到long long了直接水过 1 //#define LOCAL 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn = 10000...
分类:
其他好文 时间:
2014-07-24 14:47:45
阅读次数:
271
效果如下:html代码: click on me! CSS代码:#contentPopup { position: absolute; display: none; ...
分类:
其他好文 时间:
2014-07-24 14:42:15
阅读次数:
303
Problem Description
Paper quality and quantity have long been used to measure a research's scientific productivity and scientific impact. Citation, which is the total times a paper has been cited, is...
分类:
其他好文 时间:
2014-07-24 11:36:52
阅读次数:
260
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long LL;
const int maxn =10000+5;
const int ma...
分类:
其他好文 时间:
2014-07-24 10:45:34
阅读次数:
230