码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
简单DP入门四连发
复习一下一直不太懂的dp.dp博大精深,路还长着呢第一题;http://acm.hdu.edu.cn/showproblem.php?pid=2084从下往上就是水题 1 #include 2 using namespace std; 3 int max(int x,int y) 4 { 5 ...
分类:其他好文   时间:2015-10-13 22:39:34    阅读次数:196
Uva(10986)
很裸的一道dijk算法题,因为顶点数太多无法用邻接矩阵表示,所以要用临界表来表示AC代码#include#include#include#include #include#includeusing namespace std;using namespace std;const int maxn=2*...
分类:其他好文   时间:2015-10-13 22:38:20    阅读次数:124
对称矩阵 一个简单的小把戏
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication13{ clas...
分类:其他好文   时间:2015-10-13 22:37:27    阅读次数:201
poj3259(spfa)
自己的第一道spfa,纪念一下,顺便转载一下spfa的原理。先po代码:#include #include using namespace std;const int MAX = 999999;const int MAXN = 501;int minimum(int a, int b){ re...
分类:其他好文   时间:2015-10-13 22:31:16    阅读次数:265
【曾经】图片快速分割
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System....
分类:其他好文   时间:2015-10-13 22:26:35    阅读次数:256
vijosP1289 老板娘的促销方案
vijosP1289 老板娘的促销方案链接:https://vijos.org/p/1289【思路】 组合公式+高精度。 如果n-m 2 using namespace std; 3 struct Bign{ 4 int len; 5 long long N[101]; 6 ...
分类:其他好文   时间:2015-10-13 21:10:21    阅读次数:263
uva 202 Repeating Decimals
题意:输入整数a和b,(0 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 int vis[3005]; 9 10 int main(){11 int a,b;12 while(cin>>...
分类:其他好文   时间:2015-10-13 21:05:09    阅读次数:201
hdu5269 ZYB loves Xor I
分治法和字典树都可以,都是递归,但字典树耗内存 从第一bit开始,若相同则xor为0,分到同一部分,不相同则统计,且此时lowbit为这一bit,最后结果要乘以2 1 /*分治法*/ 2 #include 3 #define MOD 998244353 4 5 using namespac...
分类:其他好文   时间:2015-10-13 20:58:53    阅读次数:167
有关圆的计算。
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 运算符{ class Program { const double pai = 3.1...
分类:其他好文   时间:2015-10-13 20:56:32    阅读次数:242
u3d 加载PNG做 UI图片
using UnityEngine;using System.Collections;using System.IO;using UnityEngine.UI;public class UITexLoader : MonoBehaviour { public string _Path ="As...
分类:其他好文   时间:2015-10-13 19:03:29    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!