自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(61)
  • 资源 (1)
  • 收藏
  • 关注

原创 牛客-Problem C

Problem C题目链接时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 32M,其他语言64M题目描述对于给定的字符序列,从左至右将所有的数字字符取出拼接成一个无符号整数(字符序列长度小于100,拼接出的整数小于2^31,),计算并输出该整数的最大素因子(如果是素数,则其最大因子为自身)输入描述有多组数据,输入数据的第一行为一个正整数,表示字符序列的数目,每组数据为一行字符序列。输出描述对每个字符序列,取出所得整数的最大素因子,若字符序列中没有数字或者找出的整数

2020-06-22 10:04:50 318

原创 HDU 2678 TimeLimit

TimeLimitTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 430Accepted Submission(s): 102Problem DescriptionMagina is surround by hundreds of monsters. Can he survive in T unit times?Now m...

2020-05-28 16:59:49 368

原创 百炼 2236:Wireless Network

题目描述总时间限制: 10000ms 内存限制: 65536kBAn earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all computers in the network were all broken

2020-05-17 23:23:11 287

原创 HDU:Choose the best route

Choose the best routeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 23881 Accepted Submission(s): 7634Problem DescriptionOne day , Kiki wants to visit one of her friends. As she is liable to c

2020-05-17 20:24:13 267

原创 百炼2393:Yogurt factory

具体报错信息如下:/usr/bin/ld: /tmp/ccXel8Hy.o: undefined reference to symbol 'sqrt@@GLIBC_2.2.5'/usr/bin/ld: /lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command linecollect2: er...

2020-04-10 17:50:01 278

原创 Leetcode 电话号码的字母组合

题目描述给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。给出数字到字母的映射如下(与电话按键相同)。注意 1 不对应任何字母。示例:输入:"23"输出:["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].说明:尽管上面的答案是按字典序排列的,但是你可以任意选择答案输出的顺序。解题思路对数字字母之间进...

2020-01-20 23:42:55 179

原创 Leetcode 最接近的三数之和

题目描述给定一个包括 n 个整数的数组 nums 和 一个目标值 target。找出 nums 中的三个整数,使得它们的和与 target 最接近。返回这三个数的和。假定每组输入只存在唯一答案。例如,给定数组 nums = [-1,2,1,-4], 和 target = 1.与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2).解题思路这道题目和前一题三数之...

2020-01-20 22:19:20 122

原创 Leetcode 三数之和+细节描述

题目描述给定一个包含 n 个整数的数组nums,判断nums中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?找出所有满足条件且不重复的三元组。**注意:**答案中不可以包含重复的三元组。示例:给定数组 nums = [-1, 0, 1, 2, -1, -4],满足要求的三元组集合为:[ [-1, 0, 1], [-1, -1, 2]]解题思路以前...

2020-01-19 14:41:16 133

原创 CCF201903-4 消息传递接口

做到自闭。。。关了同步流直接就100了。。没关20。。本来还以为能关掉快点题目不难,主要是字符串的分割不太懂。剩下来就是暴力模拟了。#include <cstdio>#include <string.h>#include <iostream>#include <string>#include <bits/std...

2019-11-23 16:30:50 251

原创 Codeforces 598C Nearest vectors

C. Nearest vectors time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard outputYou...

2019-11-08 23:48:20 196

原创 HDU 1455 Sticks

SticksTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31501Accepted Submission(s): 5025Problem DescriptionGeorge took sticks of the...

2019-11-08 18:51:40 117

原创 Codeforce-527C Glass Carving

C. Glass Carvingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLeonid wants to become a glass carver (the person who creates be...

2019-11-02 23:47:59 168

原创 POJ 1068 Parencodings

ParencodingsTime Limit:1000MS Memory Limit:10000K Total Submissions:29691 Accepted:17485 DescriptionLet S = s1 s2...s2n be a well-formed string of parentheses. S can be enc...

2019-11-02 19:08:16 169

原创 POJ 1328 Radar Installation

Radar InstallationTime Limit:1000MS Memory Limit:10000K Total Submissions:127683 Accepted:28056 DescriptionAssume the coasting is an infinite straight line. Land is in one ...

2019-11-02 16:51:07 200

原创 Codeforce-831A Unimodal Array

A. Unimodal Arraytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputArray of integers isunimodal, if:it is strictly increasing in...

2019-11-02 11:19:35 164

原创 AndroidStudio Android Unknown failure: Can't find service: package

解决办法:AVD Manager -> 选中的你的模拟器 -> 右键 ->Cold Boot Now

2019-10-27 23:11:15 10724 19

原创 Linux文件操作指令MV最低权限测试

首先我们可以使用vim创建一个文件,在里面写一些简单的信息,命名为testFile。然后我们可以先查看一下它的权限。可以发现它是对于当前用户来说是可读可写的,测试也是在当前用户上进行的。然后我们再创建一个文件夹,命名为testDir,并查看其权限。可以发现对于当前用户其是可读可写也可运行的。接下来我们开始测试。MV指令文件重命名先看文件的重命名。我们先把文件的权限全部去掉(...

2019-10-27 17:23:23 2497

原创 Codeforce-831C Jury Marks

C. Jury Marks time limit per test: ...

2019-10-25 23:41:26 175

原创 HDU 4841 圆桌问题

圆桌问题Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 5027Accepted Submission(s): 2018Problem Description圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人...

2019-10-25 21:48:18 308

原创 HDU 1022 Train Problem I

Train Problem ITime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 55528Accepted Submission(s): 20840Problem DescriptionAs the new term...

2019-10-25 20:03:21 119

原创 HDU 1896 Stones

StonesTime Limit: 5000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 5435Accepted Submission(s): 3537Problem DescriptionBecause of the wrong statu...

2019-10-25 18:43:39 147

原创 POJ 2349 Arctic Network

Arctic NetworkTime Limit:2000MS Memory Limit:65536K Total Submissions:30989 Accepted:9347 DescriptionThe Department of National Defence (DND) wishes to connect several nort...

2019-10-25 16:45:30 166

原创 HDU 4786 Fibonacci Tree

Fibonacci TreeTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8070Accepted Submission(s): 2442Problem Description  Coach Pang is in...

2019-10-25 13:47:44 143

原创 POJ 2031 Building a Space Station

Building a Space StationTime Limit:1000MS Memory Limit:30000K Total Submissions:15829 Accepted:6936 DescriptionYou are a member of the space station engineering team, and a...

2019-10-25 12:17:52 86

原创 HDU 1301 Jungle Roads

Jungle RoadsTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11942Accepted Submission(s): 8728Problem DescriptionThe Head Elder of...

2019-10-25 10:32:38 119

原创 Linux查看文件内容的类型

使用file命令:file 文件名如:file lab1结果如下:

2019-10-19 23:48:07 1005

原创 HDU 2682 Tree

TreeTime Limit: 6000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4192Accepted Submission(s): 1258Problem DescriptionThere are N (2<=N<=600...

2019-10-18 23:33:16 108

原创 POJ 3522 Slim Span

Slim SpanTime Limit:5000MS Memory Limit:65536K Total Submissions:10496 Accepted:5510 DescriptionGiven an undirected weighted graphG, you should find one of spanning trees ...

2019-10-18 21:26:21 127

原创 HDU 2122 Ice_cream’s world III

Ice_cream’s world IIITime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2877Accepted Submission(s): 1014Problem Descriptionice_cream’s...

2019-10-18 20:16:09 147

原创 HDU 1198 Farm Irrigation

Farm IrrigationTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12449Accepted Submission(s): 5360Problem DescriptionBenny has a spac...

2019-10-18 19:12:41 126

原创 HDU 4334 Trouble

TroubleTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6911Accepted Submission(s): 1927Problem DescriptionHassan is in trouble. Hi...

2019-10-18 12:27:36 198

原创 HDU 3172 Virtual Friends

Virtual FriendsTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12562Accepted Submission(s): 3623Problem DescriptionThese days, you ...

2019-10-18 10:22:29 127

原创 AndroidTextView实现滚动条

需要在文本框中添加数据,但是添加多了以后会导致文本框大小发生改变,而且文本也无法全部显示查看。记录一下怎么设置文本框中的滚动条。1. 单独设置TextView 在对应TextView的XML配置中,添加两个属性:android:scrollbars="vertical"android:fadeScrollbars="true" scrollbars:代表滚...

2019-10-17 16:52:56 4880

原创 HDU 2476 String painter

String painterTime Limit: 5000/2000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7633Accepted Submission(s): 3717Problem DescriptionThere are two stri...

2019-10-13 13:25:41 113

原创 HDU 4283 You Are the One

You Are the OneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6756Accepted Submission(s): 3368Problem Description  The TV shows su...

2019-10-13 09:30:56 132

原创 JavaURL网络爬虫+敏感词匹配+GUI

1 题目要求编写界面,输入一个网址,能够爬取该网址上所有的HTML源代码。 对网址中的文本进行提取。 建立敏感词库,用文本文件保存。 将该网址所对应的文本中的敏感词提取并高亮显示。 编写文本文件,可以存入多个网址;程序可爬取这些网址中的文本内容,将敏感词记录存入另一个文件,格式自定。 编写一个主界面,整合上述功能。2 设计思路采用JavaURL类连接网页网页。 爬取...

2019-10-04 23:24:41 7659 5

原创 POJ 1029 False coin

False coinTime Limit:1000MS Memory Limit:65536K Total Submissions:22295 Accepted:6256 DescriptionThe "Gold Bar"bank received information from reliable sources that in their...

2019-10-04 23:15:39 239

原创 HDU 2102 A计划

A计划Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 35817Accepted Submission(s): 8844Problem Description可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而...

2019-07-31 23:10:17 94

原创 HDU 2545 树上战争

树上战争Time Limit: 10000/4000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1661Accepted Submission(s): 917Problem Description给一棵树,如果树上的某个节点被某个人占据,则它的所有儿子...

2019-07-28 11:41:23 144

原创 HDU 1272 小希的迷宫

小希的迷宫Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 73951Accepted Submission(s): 23201Problem Description上次Gardon的迷宫城堡小希玩了很久(见Prob...

2019-07-28 10:47:34 145

Spider.zip

用JavaURL获取网页源码,并且对其进行敏感词匹配。

2020-07-17

空空如也

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

TA关注的人

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