自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

不行不至

Life is hard no matter where we live.

  • 博客(17)
  • 收藏
  • 关注

原创 STL题目

1.题目:D的小L时间限制:4000 ms | 内存限制:65535 KB难度:2描述一天TC的匡匡找ACM的小L玩三国杀,但是这会小L忙着哩,不想和匡匡玩但又怕匡匡生气,这时小L给匡匡出了个题目想难倒匡匡(小L很D吧),有一个数n(0<n<10),写出1到n的全排列,这时匡匡有点囧了,,,聪明的你能帮匡匡解围吗?输入第一行输入一个数N(0&a

2018-09-23 00:43:29 841

原创 UVa 156 Ananagrams(STL map)

DescriptionMost crossword puzzle fans are used to anagrams–groups of words with the same letters in different orders–for example OPTS, SPOT, STOP, POTS and POST. Some words however do not have this a...

2018-09-20 00:07:38 282

原创 PAT A1076 Forwards on Weibo

关键字:BFS题目:1076 Forwards on Weibo (30 分)Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network i...

2018-09-18 01:06:07 376

原创 PAT 1046 Shortest Distance

1046 Shortest Distance(20 分) The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specifi...

2018-09-10 23:42:27 273

原创 hdu 1010 Tempter of the Bone(dfs)

题目: Tempter of the BoneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 149127 Accepted Submission(s): 39785Problem Description The do...

2018-09-09 23:08:57 238

原创 数据库-三级考试-题目及操作过程3.1.1

数据库-三级考试-题目及操作过程3.1.11.题目2.操作过程1.题目2.操作过程将考试提供的素材数据库导入sql server 右键数据库->附加create proc add_emp@id1 int, @name1 varchar(25), @hiredate1 datetime, @job1 varchar(10),@sal1 numeri...

2018-09-09 16:08:32 1565 2

原创 PAT A1034 Head of a Gang(dfs)

1034 Head of a Gang(30 分) One way that the police finds the head of a gang is to check people’s phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a ...

2018-09-08 23:31:27 392

原创 PAT A1030 Travel Plan(最短路径)

1030 Travel Plan(30 分) A traveler’s map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to de...

2018-09-07 21:54:55 421

原创 PAT A1003 Emergency(最短路径)

题目: 1003 Emergency(25 分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue t...

2018-09-06 10:17:12 436

原创 hdu 1312 Red and Black(dfs)

题目: Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 26236 Accepted Submission(s): 15854Problem Description There is a re...

2018-09-05 22:01:03 268

原创 hdu1241 Oil Deposits (dfs)

题目: Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 43001 Accepted Submission(s): 24969Problem Description The GeoSurvCom...

2018-09-05 21:14:04 215

原创 hdu 1181 变形课(dfs)

题目: 变形课Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others) Total Submission(s): 31204 Accepted Submission(s): 11247Problem Description 呃……变形课上Harry碰到了一点小麻烦,因...

2018-09-04 23:51:36 238

原创 考研机试真题--回文字符串--华中科技大学

题目: 题目描述 给出一个长度不超过1000的字符串,判断它是不是回文(顺读,逆读均相同)的。 输入描述: 输入包括一行字符串,其长度不超过1000。 输出描述: 可能有多组测试数据,对于每组数据,如果是回文字符串则输出”Yes!”,否则输出”No!”。 示例1 输入 hellolleh helloworld 输出 Yes! No!链接: https://www.n...

2018-09-04 01:45:05 254

原创 考研机试真题--字符串去特定字符--哈工大

题目: 题目描述 输入字符串s和字符c,要求去掉s中所有的c字符,并输出结果。 输入描述: 测试数据有多组,每组输入字符串s和字符c。 输出描述: 对于每组输入,输出去除c字符后的结果。 示例1 输入 复制 heallo a 输出 复制 hello链接: https://www.nowcoder.com/practice/d5d0450134db4cb994a1b...

2018-09-02 23:08:51 602

原创 python实现划分机器学习训练集与测试集

#!/usr/bin/env python3# -*- coding: UTF-8 -*-import numpy as npfrom sklearn.model_selection import train_test_splitimport pandas as pddataSetName = 'ionosphere'dataSet = pd.read_csv(dataSetNam...

2018-09-02 21:24:33 3520

原创 [python编程]pycharm显示 ImportError: No module named xxx

问题: 在运行python程序时,使用mac终端可以正常运行某个python程序,然而在pycharm运行时,显示 ImportError: No module named pandas 或者是显示其他的ImportError: No module named xxx…仔细看了一下….是我安装了2个Python程序…..我的pycharm使用的是python2.7,而在终端中的是pyt...

2018-09-02 17:00:28 7669

原创 考研机试真题--字符串的查找删除(STL-string)--北航

题目: 给定一个短字符串(不含空格),再给定若干字符串,在这些字符串中删除所含有的短字符串。 输入输入只有1组数据。 输入一个短字符串(不含空格),再输入若干字符串直到文件结束为止。 输出删除输入的短字符串(不区分大小写)并去掉空格,输出。 样例输入in#includeint main() {printf(” Hi “); }样例输出clud...

2018-09-01 23:17:18 395

空空如也

空空如也

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

TA关注的人

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