码迷,mamicode.com
首页 >  
搜索关键字:leap motion    ( 467个结果
闲的无聊,,,
//蓝桥,高斯日记#include #include #include #include using namespace std;int a[20] = {0,31,28,31,30,31,30,31,31,30,31,30,31};int leap(int y){ if(y%400 == 0 ||...
分类:其他好文   时间:2015-03-12 14:41:40    阅读次数:116
一条命令monkey命令
adb -d shell monkey -s 5 -p com.xxx.xx --throttle 500 --pct-touch 15 --pct-motion 10 --pct-trackball 15 --pct-nav 25 --pct-majornav 15 --pct-appswitch 2 --pct-anyevent 16 --monitor-native-crashes -...
分类:其他好文   时间:2015-03-11 13:13:16    阅读次数:205
摇一摇
/** 开始摇一摇 */ - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event /** 摇一摇结束(需要在这里处理结束后的代码) */ - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { ...
分类:其他好文   时间:2015-03-11 10:57:49    阅读次数:154
HDU 1076 An Easy Task
/* 算闰年,思路简单,按照题目的要求就行了 判断闰年的条件 ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) */ # include int judge_leap(int year) { if(((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) ...
分类:其他好文   时间:2015-03-07 10:14:03    阅读次数:152
iOS开发-CoreMotion框架(加速计和陀螺仪)
CoreMotion是一个专门处理Motion的框架,其中包含了两个部分加速度计和陀螺仪,在iOS4之前加速度计是由UIAccelerometer类来负责采集数据,现在一般都是用CoreMotion来处理加速度过程,不过由于UIAccelerometer比较简单,同样有人在使用。加速计由三个坐标轴决...
分类:移动开发   时间:2015-03-07 00:59:35    阅读次数:258
DispatchTouchEvent & OnInterceptTouchEvent & onTouchEvent的含义和区别
1.DispatchTouchEvent      Pass the touch screen motion event down to the target view, or this view if it is the target.      传递触摸事件到目标视图,或者他就是目标视图。 情况1:return true 则事件只...
分类:其他好文   时间:2015-03-05 19:29:35    阅读次数:212
USACO--1.1Friday the Thirteenth+简单模拟
n只有400,所以可以直接暴力模拟。 因为一个小问题卡了很久。。。。。。代码如下:/* ID: 15674811 LANG: C++ TASK: friday */#include #include #include #include using namespace std;bool is_leap(int year) {...
分类:其他好文   时间:2015-03-04 11:06:39    阅读次数:131
HDOJ 题目1035 Robot Motion(模拟)
Robot Motion Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7372    Accepted Submission(s): 3389 Problem Description A robot has b...
分类:其他好文   时间:2015-02-28 16:27:51    阅读次数:154
Robot Motion(imitate)
Robot MotionTime Limit:1000MSMemory Limit:10000KTotal Submissions:11065Accepted:5378DescriptionA robot has been programmed to follow the instructions ...
分类:其他好文   时间:2015-02-25 21:02:17    阅读次数:206
poj1573Robot Motion
背景:一次ac,但做这种没有中文的题做多了,已经严重让我怀疑我自己了,毕竟英语太烂,读懂题意就要读好久。 思路:主要用两个数组模拟整个path,一个用字符串数组来模拟出整个命令,然后用一个整型数组初始化为0,每次走一步就标记一下,这样就能很快的找到结束条件了。 学习:懂得简化代码,把各种情况相同部分的代码写到一起。#include #include #include using name...
分类:其他好文   时间:2015-02-11 09:22:07    阅读次数:133
467条   上一页 1 ... 36 37 38 39 40 ... 47 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!