码迷,mamicode.com
首页 >  
搜索关键字:could you do me a favor    ( 45411个结果
[LeetCode]Palindrome Number
Determine whether an integer is a palindrome. Do this without extra space....
分类:其他好文   时间:2014-05-15 14:38:59    阅读次数:278
zoj3678The Toy of Flandre Scarlet(水,高中老师提过。。)
The Toy of Flandre Scarlet Time Limit: 2 Seconds      Memory Limit: 65536 KB As you know, Flandre Scarlet loves her elder sister Remilia Scarlet, and of course, Remilia loves Flandre, too. B...
分类:其他好文   时间:2014-05-15 07:06:45    阅读次数:259
Sicily 1302 Magic Square (数论)
链接:http://soj.me/1302 题目中有图和表格,所以就不把题目信息列出来了,打开链接直接看就行了。。。 分析: 从填幻方的过程,可以判断一下几点: 1>.幻方的每一列都是向下发展的; 2>.填入的前n个数都刚好是每一列第一个填入的数; 从这两点可以推出下面几点: (1). 每一列的发展是平面的(即每一列的个数是一样的,特别的,只有一列少一); (2). 右下角...
分类:其他好文   时间:2014-05-15 07:01:20    阅读次数:217
CareerCup之1.6 Rotate Image
【题目】 原文: 1.6 Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do this in place? 译文: 一张图像表示...
分类:其他好文   时间:2014-05-15 05:43:35    阅读次数:240
[LeetCode]String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases. Notes: It is intended for this problem to be specifi...
分类:其他好文   时间:2014-05-15 05:00:50    阅读次数:229
C++ - Identifier not found
?? This is because forward declaration in C++: Compiler needs to know function prototype when function call is compiled. So, you need declare the called function first or place the called function be...
分类:编程语言   时间:2014-05-15 04:52:19    阅读次数:211
LeetCode 006 ZigZag Conversion
【题目】 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) P A H N A P L S I I G Y I R And then read line by line: "PAHNAPLSI...
分类:其他好文   时间:2014-05-15 04:30:57    阅读次数:313
Sicily 1732 Alice and Bob (二进制数的最大公约数)
链接: http://soj.me/1732 Constraints Time Limit: 1 secs, Memory Limit: 32 MB Description: Alice is a beautiful and clever girl. Bob would like to play with Alice. One day, Alice got a very ...
分类:其他好文   时间:2014-05-15 03:20:59    阅读次数:383
随笔 : Do you remember Turbo Basic?
老爷子心不老, 依然在勤勤恳恳地敲着书和代码...没错, 就是source code. 像老爷子这样的老一辈会用电脑的都不多, 而我亲爱的老爷子那是会Turbo Basic的顶尖高手啊...每次想到这个, 内心都倍感自豪... 当年的"窗口"编程极其繁琐, 如果不看看那一套, 再加上个, 都不保证能...
分类:其他好文   时间:2014-05-14 13:38:42    阅读次数:327
c++ Fraction类 操作符重载练习
#include using namespace std;int GreatestCommonDivisor(int m,int n) //辗转相除法求最大公约数{ int r; do { r = m % n; m = n; ...
分类:编程语言   时间:2014-05-14 11:18:00    阅读次数:675
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!