码迷,mamicode.com
首页 >  
搜索关键字:poj 1321    ( 20310个结果
POJ 3984 迷宫问题
迷宫问题 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 49149 Accepted: 26684 Description 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, ...
分类:其他好文   时间:2020-01-31 12:19:13    阅读次数:47
POJ-2386 Lake Counting
Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 56258 Accepted: 27405 Description Due to recent rains, water has pooled in va ...
分类:其他好文   时间:2020-01-31 10:53:47    阅读次数:89
挑战程序设计竞赛2.4习题:Moo University - Financial Aid POJ - 2010
Bessie noted that although humans have many universities they can attend, cows have none. To remedy this problem, she and her fellow cows formed a new ...
分类:其他好文   时间:2020-01-31 10:34:26    阅读次数:62
等差数列异或和模板
POJ-3495 题解: #include <iostream> #include<algorithm> #include <cstdio> #include <cstdlib> #include <cstring> #include <queue> #define INF 0x3f3f3f3f # ...
分类:其他好文   时间:2020-01-31 00:34:17    阅读次数:80
刷POJ时搭配使用的makefile
前提:linux系统、系统安装有make工具、最好还会一点makefile语法 在刷POJ的时候,每次测试一遍都要从新输入样例,再查看输出是否正确。重复的输入数据很费时间,于是将输入数据直接写入一个input文本内, 运用重定向的方法 自动输入样本数据,大大节省时间。 下面是我的makefile文件 ...
分类:其他好文   时间:2020-01-30 12:49:55    阅读次数:69
POJ 3126 Prime Path
https://vjudge.net/problem/POJ-3126 题意:T组数据,每组数据给你两个四位数 a 和 b. 每次你可以变幻四位数 a 某个位置上的数字,得到一个新的四位数 t,并且 t 是素数, 问变幻多少次后,可以得到四位数 b. 题解:埃式筛法求素数(暴力求素数应该也可,口嗨) ...
分类:其他好文   时间:2020-01-30 10:07:05    阅读次数:62
Scrambled Polygon POJ - 2007(极角排序)
Scrambled Polygon POJ - 2007 题意: 思路:其实就是将(0,0)这个点按照极角排序,其他点对于(0,0)来排序,将排序后输出就行,注意输入不定 1 // 2 // Created by HJYL on 2020/1/17. 3 // 4 #include<iostream ...
分类:编程语言   时间:2020-01-29 21:36:10    阅读次数:54
搜索题
1. POJ 1321 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列, 请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 初始想法(wa) book[MA]//该行是否放棋子 单纯考虑在n行中取 ...
分类:其他好文   时间:2020-01-29 17:50:12    阅读次数:81
The Unique MST POJ - 1679 次小生成树
#include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; const int N=510,M=10010; int ...
分类:其他好文   时间:2020-01-29 16:24:35    阅读次数:79
Agri-Net POJ - 1258 prim
#include<iostream> #include<cstdio> #include<cstring> using namespace std; const int N=110; #define inf 1<<29 int map[N][N],n; int dist[N]; bool st[N] ...
分类:Web程序   时间:2020-01-29 16:08:44    阅读次数:60
20310条   上一页 1 ... 38 39 40 41 42 ... 2031 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!