码迷,mamicode.com
首页 > 其他好文
CUDA 矩阵相乘
#include "cuda_runtime.h"#include "device_launch_parameters.h"#include #include #include "cublas_v2.h"#define BLOCK_SIZE 16/***************/用cuBlas的内置...
分类:其他好文   时间:2014-08-16 22:17:21    阅读次数:292
POJ1308
1、题目链接地址 http://poj.org/problem?id=13082、源代码#includeusing namespace std;#define MAXN 100int set[MAXN]; //set[]记录每个节点的父节点int FindSet(int x) //寻找x所在根的根....
分类:其他好文   时间:2014-08-16 22:17:11    阅读次数:221
F - Coins
F - Coins Time Limit:3000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription People in Silverland use coins.They have coins ...
分类:其他好文   时间:2014-08-16 22:17:01    阅读次数:266
HDU 2521 反素数
反素数Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4238Accepted Submission(s): 2456Problem Descrip...
分类:其他好文   时间:2014-08-16 22:16:51    阅读次数:348
二维矩阵卷积运算实现
http://z.download.csdn.net/detail/wangfei0117/4408649http://download.csdn.net/detail/wanwenliang2008/1767686
分类:其他好文   时间:2014-08-16 22:16:31    阅读次数:392
找1~100之间素数的两种比较简单的方法
方法一:利用一个布尔类型的值的判断,优点想法更直接易懂public static void main(String[] args) { for(int i=2;i<=100;i++){ boolean b=true; for(int n=2;...
分类:其他好文   时间:2014-08-16 22:16:01    阅读次数:240
学习pyqt4 基础 2
# 学习pyqt4 基础 2 ## 回顾 1. 之前有句话这么说:`QWidget 部件是PyQt4 中所有用户界面类的父类`。 2. 突然想起,在上节中,或许会碰到中文乱码问题,在字符串前面加上u,表示unicode(具体原理也不清楚)。解决...
分类:其他好文   时间:2014-08-16 21:14:12    阅读次数:184
Cocos2d-x3.2 双击事件
//GameScene.h #include?"cocos2d.h" USING_NS_CC; class?GameScene?:?public?cocos2d::Layer { public: ????static?cocos2d::Scene*?createScene(); ???? ????virtual?bool?init(); ??...
分类:其他好文   时间:2014-08-16 21:14:02    阅读次数:216
Scala框架选择
我所知道的Scala持久层框架有: 1、Slick? 2、Squeryl 3、Anorm(Play的持久层) 4、ScalaActiveRecord?(基于Squeryl之上) 5、circumflex-orm web框架的话 1、Spray(build on akka,完全异步,非阻塞,非常有...
分类:其他好文   时间:2014-08-16 21:13:41    阅读次数:180
汉澳Sinox2014X64server高级桌面服务器版操作系统发布
汉澳Sinox2014X64server高级桌面服务器版操作系统发布   当你在现代城市夜空中看到一道闪电,屏幕中央闪过几个图形,转眼间变成美轮美奂的紫色空中天国,说明你来到了汉澳sinox2014世界! 在汉澳sinox2013基础上开发的64位汉澳sinox将更加先进,充分利用计算机的硬件资源,更多的软件,还支持硬件厂家驱动程序下载安装。 汉澳Sinox2014X64server高...
分类:其他好文   时间:2014-08-16 21:12:31    阅读次数:280
POJ 3086 Triangular Sums
POJ 3086 Triangular Sums 还是为了积分。。。...
分类:其他好文   时间:2014-08-16 21:12:21    阅读次数:208
bnu 34985 Elegant String(矩阵快速幂+dp推导公式)
Elegant String Time Limit: 1000ms Memory Limit: 65536KB 64-bit integer IO format: %lld      Java class name: Main Prev  Submit Status Statistics Discuss  Next Type:  None ...
分类:其他好文   时间:2014-08-16 21:12:01    阅读次数:269
POJ 3087 Shuffle'm Up (模拟)
POJ 3087 Shuffle'm Up (模拟)...
分类:其他好文   时间:2014-08-16 21:11:56    阅读次数:185
POJ 3090 Visible Lattice Points
Description A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the origin if the line from (0, 0) to (x, y) d...
分类:其他好文   时间:2014-08-16 21:11:56    阅读次数:206
UVA654- Ratio(暴力枚举)
题目链接 题意:给出两个数n,m,求分母从1-m越来越接近n/m的序列 思路:从1-m枚举分母i,然后维护一个值,使序列越来越靠近n/m。分子j的话,j/i趋近于n/m时,可以得到(int)j=i*n/m+0.5。 代码: #include #include #include #include #include using namespace std; ...
分类:其他好文   时间:2014-08-16 21:11:31    阅读次数:202
Unity3D导入外部任务模型无法触发鼠标事件解决方案
前几日 在做U3D测试的时候 导入了网上的一个人物模型 但是后来发现无论如何该模型都无法响应诸如:OnMouseDown 这些鼠标事件 又用U3D自带的水管工做了测试 发现不是我系统的问题= = 水管工对鼠标事件还是有反应的 遂百度之 查到的解决方法是 在Project窗口中选中导入FBX模型,在右边的Inspector中选中Generate Colliders 说是因为U3...
分类:其他好文   时间:2014-08-16 21:11:21    阅读次数:177
Basic remains
Problem Description Given a base b and two non-negative base b integers p and m, compute p mod m and print the result as a base b integer. p mod m is defined as the smallest non-negative integer k ...
分类:其他好文   时间:2014-08-16 21:11:11    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!