码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
[LeetCode] Power of Two 判断2的次方数
Given an integer, write a function to determine if it is a power of two.Hint:Could you solve it in O(1) time and using O(1) space?这道题让我们判断一个数是否为2的次方数,...
分类:其他好文   时间:2015-07-06 06:38:44    阅读次数:116
[LeetCode] Regular Expression Matching
This problem has a typical solution using Dynamic Programming. We define the state P[i][j] to be true if s[0..i) matches p[0..j) and false otherwise. ...
分类:其他好文   时间:2015-07-06 01:23:06    阅读次数:97
linux中进入mysql时报错Access denied for user 'root'@'localhost' (using password: YES)解决方案
之前在linux中装完mysql后直接在命令行窗口输入mysql就会进入数据库了,但是今天输入mysql命令后直接报错,如下图:之后输入:mysql -uroot -p提示输入密码:*****还是报同样的错误,在网上查说是因为root用户没有设置mysql密码导致的,然后根据网上给出的方案进行调.....
分类:数据库   时间:2015-07-06 01:20:23    阅读次数:199
How To Setup Partitioned Linux Block Devices Using UDEV (Non-ASMLIB) And Assign Them To ASM
文档ID1528148.1Appliesto:OracleDatabase-StandardEdition-Version10.2.0.1to12.1.0.2[Release10.2to12.1]Informationinthisdocumentappliestoanyplatform.GoalThepresentdocumentprovidesanexampleabouthowtosetup/configure partitionedLinuxblockdevicesusingudev(non-ASML..
分类:系统相关   时间:2015-07-06 00:11:56    阅读次数:249
poj 2556 Edge 向量旋转
//poj 2556 //sep9 #include using namespace std; char s[256]; int main() { while(scanf("%s",&s)==1){ int px=300,py=420; int x=310,y=420; puts("300 420 moveto\n310 420 lineto"); for(int i=0;s[...
分类:其他好文   时间:2015-07-06 00:00:50    阅读次数:329
编译原理词法分析
#include#include#include using namespace std;#define N 200;/*关键字结构体定义*/typedef struct keyword{ char name[20];}KeyWord;/*符号表结构体定义*/typedef struct symbo...
分类:其他好文   时间:2015-07-05 23:56:49    阅读次数:127
学生管理系统,练习增删改等操作
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;namespace M...
分类:其他好文   时间:2015-07-05 23:55:56    阅读次数:131
qq管理系统。。
using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;namespace QQ{ class Program { static void Main(string[] args)/...
分类:其他好文   时间:2015-07-05 23:54:53    阅读次数:129
Lightoj 1090 - Trailing Zeroes (II)
题目连接: http://www.lightoj.com/volume_showproblem.php?problem=1090题目大意: 给出n,r,p,q四个数字1 2 #include 3 #include 4 #include 5 #include 6 using namespa...
分类:其他好文   时间:2015-07-05 23:45:33    阅读次数:121
poj 3105 Expectation 按位统计
题意: 给n,求sum(i^j)/(n^2),0 分析: 暴力n^2算法肯定超时。这是logn按位统计算法:按位先算出0出现的个数x,则1出现的个数为n-x,再算每位对和的贡献。 代码: //poj 3105 //sep9 #include using namespace std; int main() { int cases; scanf("%d",&cases); whil...
分类:其他好文   时间:2015-07-05 22:38:30    阅读次数:268
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!