自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 收藏
  • 关注

原创 POJ 2251-Dungeon Master(三维BFS)

Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 68867 Accepted: 24888DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is comp...

2020-02-29 11:07:02 184 2

原创 2018 ICPC青岛-books(思维题)

DreamGrid went to the bookshop yesterday. There are nn books in the bookshop in total. Because DreamGrid is very rich, he bought the books according to the strategy below:Check the nn books from the ...

2020-02-29 10:46:37 636

原创 CodeForces 15A-Cottage Village(思维题)

A new cottage village called «Flatville» is being built in Flatland. By now they have already built in «Flatville» n square houses with the centres on the Оx-axis. The houses’ sides are parallel to th...

2020-02-29 00:01:59 420

原创 CodeForces 755A-PolandBall and Hypothesis(思维题)

PolandBall is a young, clever Ball. He is interested in prime numbers. He has stated a following hypothesis: “There exists such a positive integer n that for each positive integer m number n·m + 1 is ...

2020-02-28 23:51:59 268

原创 CodeForces - 26A-Almost Prime(分解质因子+暴力打表+STL)

A number is called almost prime if it has exactly two distinct prime divisors. For example, numbers 6, 18, 24 are almost prime, while 4, 8, 9, 42 are not. Find the amount of almost prime numbers which...

2020-02-28 23:33:27 527

原创 UVA11624-Fire!(BFS)

Joe works in a maze. Unfortunately, portions of the maze havecaught on fire, and the owner of the maze neglected to create a fireescape plan. Help Joe escape the maze.Given Joe’s location in the ma...

2020-02-28 23:21:38 331

原创 POJ3278-Catch That Cow(BFS)

Catch That CowTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 159649 Accepted: 48699DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her im...

2020-02-26 19:00:25 187

原创 HDU1241-Oil Deposits(DFS)

Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 58953 Accepted Submission(s): 33786Problem DescriptionThe GeoSurvComp geologi...

2020-02-25 18:39:26 299

原创 POJ1321-棋盘问题(DFS)

在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 , k <= n当为...

2020-02-25 18:12:43 239

原创 POJ 3258-River Hopscotch(二分答案)

River HopscotchTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 25633 Accepted: 10556DescriptionEvery year the cows hold an event featuring a peculiar version of hopscotch that involves...

2020-02-23 11:03:08 235

原创 牛客小白月赛22-F-累乘数字(水题)

链接:https://ac.nowcoder.com/acm/contest/4462/F来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述我们知道将一个大于1的数乘以另一个大于1的数会使乘积大于任意一个乘数。现在给出两个数字 n, d,你能否计算将n乘以d次100的结果。...

2020-02-23 00:03:55 314

原创 牛客小白月赛22-J 计算A+B(大整数加法)

链接:https://ac.nowcoder.com/acm/problem/202511来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述在一行中给出一个字符串,请判断是否满足A + B格式,如果满足,输出计算结果,否则输出"skipped"。此处A,B均为大于等于0的整...

2020-02-22 23:55:48 422

原创 51Nod 2107 二个奇数次(位运算)

2107 二个奇数次1.0 秒 131,072.0 KB输入一个长度为n的数组,考虑所有不同的数字,有且只有2个数字出现了奇数次。比如对于1 2 3 1 2 3 1 2,我们考虑所有不同的数字1 2 3,有且只有1,2出现了奇数次(均为3次)输出这两个出现了奇数次的数字。先输出这两个数字中较小的,再输出较大的。1 <= n <= 1000001 <= a[i] &l...

2020-02-20 22:59:25 326

原创 HDU1276-士兵队列训练问题(STL list)

士兵队列训练问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19604 Accepted Submission(s): 8235Problem Description某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并...

2020-02-20 22:35:42 661

原创 UVA10815 Andy's First Dictionary(字符串处理)

DescriptionHH学长刚刚立下了再不过CET就直播xx的flag,为了不真的开启直播模式,HH学长决定好好学习英语。于是他每天都读一篇只包含生词的英语文章,并以自己高达450的智商在一秒钟之内记忆下来。现在给你一篇HH学长今天要读的文章,请你写一个程序,输出他都学习到了哪些单词。要求:如果文章中有相同的单词,那么仅仅输出一次;而且如果两个单词只有大小写不同,将他们视为相同的单词。I...

2020-02-20 22:17:27 204

原创 51nod-1127 最短的包含字符串(尺取法)

1127 最短的包含字符串给出一个字符串,求该字符串的一个子串s,s包含A-Z中的全部字母,并且s是所有符合条件的子串中最短的,输出s的长度。如果给出的字符串中并不包括A-Z中的全部字母,则输出No Solution。输入第1行,1个字符串。字符串的长度 <= 100000。输出输出包含A-Z的最短子串s的长度。如果没有符合条件的子串,则输出No Solution。输入样例BV...

2020-02-18 23:52:18 506

原创 HDU1027-Ignatius and the Princess II(全排列问题next_permutation函数的使用)

Ignatius and the Princess IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14615 Accepted Submission(s): 8391Problem DescriptionNow our ...

2020-02-18 22:18:16 320

原创 HDU-1873-看病要排队(STL优先队列)

看病要排队Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 20057 Accepted Submission(s): 8372Problem Description看病要排队这个是地球人都知道的常识。不过经过细心的0068的...

2020-02-18 21:40:09 463

原创 HDU-6186-CS Course(前缀和+后缀和+位运算)

CS CourseTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3807 Accepted Submission(s): 1412Problem DescriptionLittle A has come to college...

2020-02-17 16:34:35 393

原创 HDU-1425 排序

WFU寒假训练<十二>sortTime Limit: 6000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 81178 Accepted Submission(s): 21044Problem Description给你n个整数,请按从大到小...

2020-02-17 16:23:20 191

原创 HDU -2094产生冠军 (STL)

Problem Description有一群人,打乒乓球比赛,两两捉对撕杀,每两个人之间最多打一场比赛。球赛的规则如下:如果A打败了B,B又打败了C,而A与C之间没有进行过比赛,那么就认定,A一定能打败C。如果A打败了B,B又打败了C,而且,C又打败了A,那么A、B、C三者都不可能成为冠军。根据这个规则,无需循环较量,或许就能确定冠军。你的任务就是面对一群比赛选手,在经过了若干场撕杀之后...

2020-02-17 16:09:06 189

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除