题目链接:http://poj.org/problem?id=1118题意: 给定n个点, 求在同一直线上的点最多的直线上点的数目.解法: 简单题目, 规模比较小, 暴力搜索. 1 #include 2 using namespace std; 3 #define MAXN 700 4 struc....
分类:
其他好文 时间:
2015-10-17 13:26:08
阅读次数:
107
在文件里面定义一个类,并进行实例化为对象using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace HelloWorl...
首先明确,至少有一个粗管子,要不然错,题目描述错误。。。。然后对输入进行解释,给出的距离是第i个村子和第i-1个村子的距离。暴力枚举每个村子即可 #include #include int n,a[110],ans=100000000; using namespace std; int main()...
分类:
其他好文 时间:
2015-10-17 12:05:42
阅读次数:
147
水题,直接暴力搜索: #include #include using namespace std; int a,b,c; int main() { scanf("%d%d%d",&a,&b,&c); for(int i=2;i<=min(a,min(b,c));i++){ if(a%i==b%i&&...
分类:
其他好文 时间:
2015-10-17 11:56:57
阅读次数:
148
原文地址:http://lbv.github.io/litjson/docs/quickstart.html一、using LitJson;using System;public class Person{ // C# 3.0 auto-implemented properties pu...
分类:
Web程序 时间:
2015-10-17 00:37:15
阅读次数:
192
//只AC了20%。说的就是11个位置一字型排开0-10。扔硬币到这些位置,然后有个帽子可以每次移动最多一个位置,初始位置5。//思考:相当于遍历一个3叉树。#include #include #include using namespace std;struct coins{ int x; int...
分类:
其他好文 时间:
2015-10-16 23:25:14
阅读次数:
338
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace calculator{ class Program ...
分类:
其他好文 时间:
2015-10-16 23:13:16
阅读次数:
239
1、创建自己的项目2、对“解。。。”→参加→目→C#→数据库→SQL Server项目,例如以下图所看到的:3、选择操作数据库4、创建存储过程5、代码(详见:CLR存储过程)using System;using System.Data;using System.Data.SqlClient;usin...
分类:
其他好文 时间:
2015-10-16 20:35:20
阅读次数:
177
// temp10.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ HA...
分类:
系统相关 时间:
2015-10-16 18:29:45
阅读次数:
188
洛谷1458 顺序的分数本题地址:http://www.luogu.org/problem/show?pid=1458题目描述输入一个自然数N,对于一个最简分数a/b(分子和分母互质的分数),满足1 2 #include 3 #include 4 using namespace std; 5 6 ....
分类:
其他好文 时间:
2015-10-16 16:38:16
阅读次数:
131