其实链表就可以搞定,不过分析一下感觉块链也可以过,就套模板试了一下,果然没有让我失望,看来我写的块链还是不错的,哈哈。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int M = 100001; 7 co...
分类:
其他好文 时间:
2015-08-28 21:12:00
阅读次数:
174
#include
#include
using namespace std;
int main()
{
int n,u,d;
int result;
int temp;
int i;
while(cin>>n&&n>0)
{
cin>>u>>d;
result=0;
temp=0;
temp=n-u;
int t=temp%(u-d);
if(t!=0)
{
t...
分类:
其他好文 时间:
2015-08-28 19:58:27
阅读次数:
187
1、xpath 操作XML,底下部分代码被注释了,但是是完整功能,去除注释是正常使用的(有写命名和其他冲突,所以注释了)总体有:完整读取xml,对xml的增删改查,对xml的特定操作using System;using System.Collections.Generic;using System....
分类:
其他好文 时间:
2015-08-28 19:36:50
阅读次数:
170
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 四舍五入小算法{ public class Math...
分类:
编程语言 时间:
2015-08-28 19:31:36
阅读次数:
149
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcForLamadaToTableJion.Controllers{ ....
分类:
其他好文 时间:
2015-08-28 19:25:36
阅读次数:
3256
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
编程语言 时间:
2015-08-28 19:21:54
阅读次数:
206
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcEnum.Controllers{ public class H...
分类:
编程语言 时间:
2015-08-28 19:21:27
阅读次数:
209
/*INPUT6101 2 61 3 11 4 52 3 52 5 33 4 53 5 63 6 44 6 25 6 6OUTPUT15*/#include #include #include #include using namespace std;const int N=1e5;struct n...
分类:
编程语言 时间:
2015-08-28 19:19:49
阅读次数:
162
例子1:using System;using System.IO;using Winista.Text.HtmlParser;using Winista.Text.HtmlParser.Lex;using Winista.Text.HtmlParser.Util;using Winista.Text...
分类:
Web程序 时间:
2015-08-28 19:15:18
阅读次数:
189
今日做项目需要用到webservice,就试了试。结果在引用那添加是可以的,但是现在我们那个webservice还没写出来,所以就想用动态调用webservice。所以找了很多资料看了看,也在网上查了查,发现一个不错的方法,所以转载过来。using System;using System.Web.S...