码迷,mamicode.com
首页 >  
搜索关键字:hdu 4722 good number    ( 58673个结果
[HDU 1166 敌兵布阵] 线段树 或 树状数组
1 #include 2 #include 3 #include 4 using namespace std; 5 int n,C[50005]; 6 //-------------------------- 7 int lowbit(int x){ 8 return x&-x; 9 }1...
分类:其他好文   时间:2014-07-22 23:12:33    阅读次数:311
null 和 undefined 的区别
探索javascript中null和undefined的深渊译05 January 2014当讨论JavaScript中的原始数据类型时,大多数人都知道的基本知识,从String,Number到Boolean。这些原始类型相当简单,行为符合常识。但是,本文将更多聚焦独特的原始数据类型Null和Und...
分类:其他好文   时间:2014-07-22 23:10:32    阅读次数:507
HDU 1002
A + B Problem IITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 199099Accepted Submission(s): 3809...
分类:其他好文   时间:2014-07-22 23:08:54    阅读次数:260
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2014-07-22 23:07:13    阅读次数:379
hdu 1019 最小公倍数
简单题 注意__int64 的使用Problem : 1019 ( Least Common Multiple ) Judge Status : AcceptedRunId : 10599776 Language : C++ Author : xiaoniuwinCode Ren...
分类:其他好文   时间:2014-07-22 23:06:34    阅读次数:311
hdu 1005 数论 循环
给定 ab 与飞 f1 f2 求f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.分析:1 因为mod7 0using namespace std;int main(){ int a,b,n; int f[1005]; while(cin>>a>...
分类:其他好文   时间:2014-07-22 23:06:34    阅读次数:391
hdu 1104 数论+bfs
题意:给n,m,k;输出n经过+-*%后(n%k+k)%k==((n+1)%k)%k 输出最小路径与运算副zsd:% 只是求余数 有正负 mod 是求模 无正负、yhd:对m*k求余对 对k求余不对#include#includeusing namespace std;struct Node{ .....
分类:其他好文   时间:2014-07-22 23:06:14    阅读次数:369
Oracle 存储过程了解
简要记录存储过程语法与Java程序的调用方式 一 存储过程 首先,我们建立一个简单的表进行存储过程的测试createtable xuesheng(id integer, xing_ming varchar2(25), yu_wen number, shu_xue number);insert...
分类:数据库   时间:2014-07-22 23:06:13    阅读次数:393
hdu 1211
这题就是 要你找出一个ASCII 的值x使得 : x^e%n==num(当前输入的数,e条件已给出)zsd:1: ASCII0-255可以枚举2: =a^11 11=1011int pow2( int a, int b ){ int r = 1, base = a; while( b...
分类:其他好文   时间:2014-05-01 16:22:43    阅读次数:326
hdu 1124 数论
题意:求n!中末尾连续0的个数 其实就是2*5的个数30! 中有5 10 15 20 25 30 是5的倍数有6个 6=30/5;6/5=1; 这个1 为255 10 15 20 25 30 35 40 45 50 55 60 65 70 75 80 85 90 95 100 100/5=20; ....
分类:其他好文   时间:2014-05-01 15:58:58    阅读次数:288
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!