非递归版好像被卡掉了,其他2个板子都能过。
#include
#include
#include
#include
#include
using namespace std;
#define ll int
const int MAXN = 100100;//点数的最大值
const int MAXM = 400010;//边数的最大值
const int INF = 0x3f3f3f3f;
st...
分类:
其他好文 时间:
2014-05-09 22:55:23
阅读次数:
476
INI文件的操作(ASP.NET+C#)
(一)INIFile.cs
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace CreateWebDir
{
///
/// INIFile 的摘要说明。
///
public class INIFile ...
分类:
Web程序 时间:
2014-05-09 22:18:42
阅读次数:
319
组合框使用方法,按照下面图片上提示,设计一个windows应用程序,实现不同运算。
界面设计:
代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;...
题意:
题意好复杂。。。
给定n个人,从左到右排好队。
他们依次从左到右离开队伍。
每个人有个权值d
当某个人是第k-th离开队伍的,那么不开心值为 d*(k-1)
有一个操作,对于一个子序列,可以把前面一段翻转。
问最小的不开心值和。
#include
#include
#include
#include
#include
#include
using namespace...
分类:
其他好文 时间:
2014-05-09 20:45:04
阅读次数:
288
BFS。 1 #include 2 #include 3 #include 4
#include 5 using namespace std; 6 7 #define INF 0x3fffffff 8 9 typedef struct
node_st {10 int x, y, ...
分类:
其他好文 时间:
2014-05-09 20:18:48
阅读次数:
339
using UnityEngine;using System.Collections;public
class MoveSample : MonoBehaviour{ void Start(){ //iTween.MoveBy(gameObject,
iTween.Hash("x", 2, "e.....
分类:
其他好文 时间:
2014-05-09 20:11:02
阅读次数:
455
方法一 .net(C#) //加入引用 using System.Web.Security;
//获取User MembershipUser user = Membership.GetUser(); if(user ! = null) { //用户操作
user.UserName user.Emai...
分类:
Web程序 时间:
2014-05-09 20:07:05
阅读次数:
303
/* reference
http://nehe.gamedev.net/article/using_gluunproject/16013/*/#include //
windows系统要加这个。因为下面2个头文件的一些宏是在这个文件中定义的#include #include //这...
分类:
其他好文 时间:
2014-05-09 19:55:22
阅读次数:
365
using System;using System.IO;using
System.Security.Cryptography;using System.Text;namespace Test{ public class
MD5Code { /// /// ...
分类:
其他好文 时间:
2014-05-09 19:43:27
阅读次数:
277
最近项目上的一个上传文件功能,贴出来大家一起分享下,项目是MVC+EF+LigerUI
来做的页面需要引用这个JS 跟 CSS首先在页面添加Upload.ashx然后代码如下:using System;using
System.Collections.Generic;using System.Lin...
分类:
其他好文 时间:
2014-05-09 19:29:00
阅读次数:
453