题目链接:http://poj.org/problem?id=1686思路分析:该问题为表达式求值问题,对于字母使用浮点数替换即可,因为输入中的数字只能是单个digit。代码如下:#include #include #include #include #include #include using ...
分类:
其他好文 时间:
2015-11-17 00:12:38
阅读次数:
224
using System;using System.Collections.Generic;using System.Web;using System.CodeDom.Compiler;using System.Reflection;namespace WebApplication1{ ///...
分类:
Web程序 时间:
2015-11-17 00:09:55
阅读次数:
169
已知两圆圆心坐标和半径,求相交部分面积: 1 #include 2 using namespace std; 3 #include 4 #include 5 #define PI 3.141593 6 struct point//点 7 { 8 double x,y; 9 };10 str...
分类:
编程语言 时间:
2015-11-17 00:09:42
阅读次数:
191
ios笔记,如有错误,敬请告知,感谢不尽1.When you create an object using new, alloc, or copy, the object has aretain count of 1. You are responsible for sending the obje...
分类:
其他好文 时间:
2015-11-16 22:43:11
阅读次数:
138
注意是正的偶数。。不包括零还有n=2的时候应该横着放#include #include using namespace std;void dfs(int n){ if(n == 1){ printf("1 1\n"); return; } else if...
分类:
其他好文 时间:
2015-11-16 22:40:42
阅读次数:
157
首先创建一个服务器using UnityEngine;using System.Collections;using System.Net.Sockets;using System.Net;using System.Threading; //引入线程的包public class ServerSocke...
分类:
编程语言 时间:
2015-11-16 22:34:58
阅读次数:
186
从今天起,开始学习c++语言,给自己定一个目标,就是要把每天学习的东西做笔记,记录自己的学习历程,也为了不给自己偷懒的机会,哈哈。。 。。。。。 打开VS2015,创建工程和源文件,写了第一个helloworld程序 1 #include 2 3 using namespace std;4...
分类:
编程语言 时间:
2015-11-16 22:29:40
阅读次数:
226
两次二分,第一次取得最小值,第二次往右二分看是否能到更右边注意超出部分land部分要去掉#include #include using namespace std;typedef long long ll;struct edge{ int x, y, w, h;}a[10010];bool c...
分类:
其他好文 时间:
2015-11-16 22:28:36
阅读次数:
195
function [L,C] = kmeanspp(X,k)%KMEANS Cluster multivariate data using the k-means++ algorithm.% [L,C] = kmeans_pp(X,k) produces a 1-by-size(X,2) vec.....
分类:
其他好文 时间:
2015-11-16 21:10:49
阅读次数:
628
上次CRM中用到了Email发送功能,虽然最后实现了,但对效果并不满意。后来又找了些资料,重新整理了一份,废话不多说,直接上代码using System;using System.Collections.Generic;using System.Linq;using System.Text;usin...
分类:
其他好文 时间:
2015-11-16 21:07:06
阅读次数:
233