码迷,mamicode.com
首页 > 其他好文
1197: [HNOI2006]花仙子的魔法
1197: [HNOI2006]花仙子的魔法Time Limit:10 SecMemory Limit:162 MBSubmit:762Solved:443[Submit][Status]DescriptionInput包含两个整数,并用一个空格隔开,第一个整数表示实施魔法的次数m,第二个整数表示空...
分类:其他好文   时间:2015-01-23 21:22:01    阅读次数:153
代码 调节屏幕亮度
- (IBAction)Slider:(id)sender { [[UIScreen mainScreen] setBrightness: mSlider.value];}- (IBAction)Stepper:(id)sender { [[UIScreen mainScreen] setBrig....
分类:其他好文   时间:2015-01-23 21:21:36    阅读次数:206
小白辅助如何批量导入账号
1. 准备一个txt文件2. 里面一行一个账号,格式为 QQ号----密码----备注 QQ号----密码----备注 QQ号----密码----备注 QQ号----密码----备注3. 打开小白辅助 4. 导入账号就行了
分类:其他好文   时间:2015-01-23 21:23:16    阅读次数:144
模拟IP测试的2种解决方法 [ 光影人像 东海陈光剑 的博客 ]
背景: 之前遇到一个Labs日常需求是对于不同IP地址访问有逻辑判断,例如湖南的IP可以访问,其他地域的IP地址无法访问应用。 难点: 在测试过程中访问应用时,本地地址无法改变,始终为同一地址。对于不同IP地址段的需求无法测试 解决方案一 使用Debug方式远程调试代码 思路:通过本地发起Http请...
分类:其他好文   时间:2015-01-23 21:22:30    阅读次数:178
布局(1、线性布局)
布局(1、线性布局)
分类:其他好文   时间:2015-01-23 21:22:05    阅读次数:140
HDU 1372 Knight Moves
Knight MovesTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7261Accepted Submission(s): 4353Proble...
分类:其他好文   时间:2015-01-23 21:20:32    阅读次数:192
Activity(2. 跳转)
Activity(2. 跳转)
分类:其他好文   时间:2015-01-23 21:22:12    阅读次数:152
pthread_cond_wait 信号量丢失
服务器在使用pthread_cond_wait的时候遇到一个问题。具体描述如下一个主进程,给n个从线程发送计算请求,主进程会等待n个线程返回,在执行下一步从线程计算完毕后,最后一个线程会通知主线程。如下是示意性代码main_process(){ for(int i = 0; i sig...
分类:其他好文   时间:2015-01-23 21:20:29    阅读次数:192
LeetCode - Binary Search Tree Iterator
Binary Search Tree Iterator2015.1.23 18:58Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node ...
分类:其他好文   时间:2015-01-23 21:21:40    阅读次数:197
phonegap 基础原理
phonegap 基础原理
分类:其他好文   时间:2015-01-23 21:21:08    阅读次数:161
widget(3、Toast)
widget(3、Toast)
分类:其他好文   时间:2015-01-23 21:21:47    阅读次数:181
startActivityForResult
1、第一个ActivityIntent intent = new Intent(MainActivity.this, WillActivity.class); intent.putExtra("will", item); ...
分类:其他好文   时间:2015-01-23 21:21:32    阅读次数:179
LeetCode3-Longest Substring Without Repeating Characters
题目Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters ...
分类:其他好文   时间:2015-01-23 21:19:32    阅读次数:187
NFS,FTP
一. NFS1. NFS简介NFS全称是network file systemNFS允许一个系统在网络上与他人共享目录和文件。通过使用NFS,用户和程序可以像访问本地文件一样访问远端系统上的文件。假如有三台机器A, B, C,它们需要访问同一个目录,目录中都是图片,传统的做法是把这些图片分别放到A,...
分类:其他好文   时间:2015-01-23 21:19:43    阅读次数:212
LeetCode1-Two Sum
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:其他好文   时间:2015-01-23 21:18:04    阅读次数:239
堆和栈的区别(转)
一、预备知识―程序的内存分配 一个由c/C++编译的程序占用的内存分为以下几个部分 1、栈区(stack)― 由编译器自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap) ― 一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收...
分类:其他好文   时间:2015-01-23 21:17:43    阅读次数:187
Flatten Binary Tree to Linked List (DFS)
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:其他好文   时间:2015-01-23 21:17:22    阅读次数:252
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!