
基本题
neng18
这家伙很懒,什么都没有留下。
展开
-
poj 1907 Work Reduction_贪心
贪心的题目原创 2014-03-01 16:37:11 · 1019 阅读 · 0 评论 -
hdu 1050 Moving Tables_贪心
有趣的贪心题原创 2014-03-06 13:02:16 · 793 阅读 · 0 评论 -
stl_map,set 用法
set:集合a,b加起来,去重hdu 1406#include #include#includeusing namespace std;int main(int argc, char** argv) { set s; set:: iterator cp; int a,b,n; while(scanf("%d%d",&a,&b)!=EOF){ s.clear();原创 2014-01-21 23:50:37 · 556 阅读 · 0 评论 -
hdu 4585 Shaolin_set用法
set的函数lower_bound()用法原创 2014-04-15 14:56:06 · 780 阅读 · 0 评论 -
poj 1852 Ants_贪心
非常有趣的一道题目,真是脑筋急转弯原创 2014-02-27 16:44:32 · 762 阅读 · 0 评论 -
poj 3287 The Trip, 2007_贪心
简单的贪心题原创 2014-03-01 17:25:58 · 1220 阅读 · 0 评论 -
poj 1573 Robot Motion_模拟
又是被自己的方向搞混了题意:走出去和遇到之前走过的就输出。#include #include #includeusing namespace std;#define N 110int map[N][N],visit[N][N],n,m,flag;//n为x轴 m为y轴 int dir[][2]={{0,1},{1,0},{0,-1},{-1,0}};//e,s,w,nint原创 2013-07-24 22:01:22 · 457 阅读 · 0 评论 -
poj 1065 Wooden Sticks_贪心
简单贪心原创 2014-03-05 23:08:24 · 701 阅读 · 0 评论 -
hdu 1715 大菲波数_java
用java的大数解决import java.math.BigInteger;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner input=new Scanner(System.in); BigInteger f[]=new BigIn原创 2014-01-22 19:01:35 · 527 阅读 · 0 评论 -
uva 10245 The Closest Pair Problem_枚举
很简单的枚举题原创 2014-03-04 23:06:28 · 702 阅读 · 0 评论 -
poj 2632 Crashing Robots_模拟
做的差点想吐,调来调去,编译器都犯毛病,wlgq,幸好1a。题意:给你机器人怎走的路线,碰撞就输出#include #include #include#include#define N 110using namespace std;struct Rob{ int x,y,dire;//dire 1为e,2为s,3为w,4为n}rob[N];int n,m原创 2013-07-24 18:09:35 · 551 阅读 · 0 评论 -
uva 10041 Vito's Family_贪心
很简单的贪心题目原创 2014-03-05 22:10:19 · 753 阅读 · 0 评论 -
uva 10026 Shoemaker's Problem _贪心
贪心原创 2014-02-27 15:49:55 · 798 阅读 · 0 评论