02 2020 档案

摘要:1 #include <stdio.h> 2 #include <string.h> 3 4 typedef long long int lli; 5 6 lli power_digui(lli m, lli n) // 递归版 7 { 8 if (n == 0) // 任何数的0次方为1 9 re 阅读全文
posted @ 2020-02-27 11:30 sqdtss 阅读(877) 评论(0) 推荐(0) 编辑
摘要:Vector3 pos = Camera.main.ScreenToWorldPoint(Input.mousePosition); 阅读全文
posted @ 2020-02-26 17:25 sqdtss 阅读(583) 评论(0) 推荐(0) 编辑
摘要:首先来看百度百科鞍点定义:鞍点(Saddle point)在微分方程中,沿着某一方向是稳定的,另一条方向是不稳定的奇点,叫做鞍点。在泛函中,既不是极大值点也不是极小值点的临界点,叫做鞍点。在矩阵中,一个数在所在行中是最大值,在所在列中是最小值,则被称为鞍点。在物理上要广泛一些,指在一个方向是极大值, 阅读全文
posted @ 2020-02-26 12:12 sqdtss 阅读(3001) 评论(0) 推荐(0) 编辑
摘要:1.改变unity中配置 将Player Settings-》Other Settings下的Write Permission改为External(SDcard) 2.刷新相册 1 // /刷新图片,显示到相册中 2 void ScanFile (string[] path) { 3 using ( 阅读全文
posted @ 2020-02-26 10:37 sqdtss 阅读(354) 评论(0) 推荐(0) 编辑
摘要:假设有三个命名为x、y、z的塔座,在塔座x上插有n个直径大小各不相同、依小到大编号为1、2...n的圆盘,要求将x塔座上的n个圆盘移至z上,并仍按同样的顺序叠排,圆盘移动时应遵守下列规则: (1)每次只能移动一个圆盘; (2)圆盘可插在x、y和z中任何一个塔座上; (3)任何时刻都不能将一个较大的圆 阅读全文
posted @ 2020-02-24 11:58 sqdtss 阅读(447) 评论(0) 推荐(0) 编辑
摘要:欧拉筛法的基本思想 :在埃氏筛法的基础上,让每个合数只被它的最小质因子筛选一次,以达到不重复的目的。 1 #include<iostream> 2 #include<cstring> 3 using namespace std; 4 #define max 100000 5 6 bool visit 阅读全文
posted @ 2020-02-23 11:52 sqdtss 阅读(201) 评论(0) 推荐(0) 编辑
摘要:1 // 无向图求最小生成树权值Prim算法 2 3 #include <iostream> 4 #include <cstring> 5 using namespace std; 6 #define INF 0x3f3f3f3f 7 int maps[505][505]; 8 bool visit 阅读全文
posted @ 2020-02-23 11:45 sqdtss 阅读(833) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <cstdio> using namespace std; int parent[500]; int find(int x) // 找祖宗函数 { if (parent[x] != x) parent[x] = find(parent[x]) 阅读全文
posted @ 2020-02-23 11:30 sqdtss 阅读(87) 评论(0) 推荐(0) 编辑
摘要:题目网址:http://acm.hdu.edu.cn/showproblem.php?pid=2955 #include <iostream> #include <algorithm> #include <cstring> using namespace std; int v[100+5]; dou 阅读全文
posted @ 2020-02-23 11:26 sqdtss 阅读(90) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2546 Problem Description 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为 阅读全文
posted @ 2020-02-23 11:24 sqdtss 阅读(207) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示