- 博客(61)
- 收藏
- 关注
原创 软件全屏使用时点击鼠标自动跳回桌面的问题
记录一下自己的有效解决方法这个问题的罪魁祸首是各类优化软件修改了注册表的HKEY_CURRENT_USER\Control Panel\Desktop下的ForegroundLockTimeout项,如果你发现自己电脑这个项的值为0,那么恭喜你中招了.此项的作用是为了防止窗口失去焦点.如果值为0,后台有窗口激活会直接抢占焦点,直观就是被弹回桌面.如果值为十进制的任何数值,后台窗口激活会等待n毫秒并闪烁7次(ForegroundFlashCount项控制).解决方法:开始-运行-regedit进入注
2022-02-08 18:57:53
14005
6
原创 浏览器出现无法访问此页面的提示的解决办法
部分地区与网络会出现该问题。 本人查询论坛后找到的有效解决办法为:控制面板-网络和internet- internet选项-连接-局域网设置-在(为LAN使用代理服务器)这一栏打上勾 点击应用退出 刷新一下就可以。 下来也有可能是hosts文件里可能之前添加修改过,重置hosts试一下。 记录一下。...
2021-07-25 19:24:04
12290
原创 耳机左右声道反了怎么办?(两极反转!)
Equalizer APO download用这个 很好用Download Equalizer APO fromEqualizer APO download Configure it to attach to your output device (Usually something like: "Speakers - VIA HD Audio" or "Speakers - Realtek HD Audio"); you can change this later with the "Conf.
2020-08-04 17:32:43
18509
原创 C. Bank Hacking
C. Bank Hackingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlthough Inzane successfully found his belo
2017-04-27 20:04:41
461
原创 D. Broken BST
D. Broken BSTtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet T be arbitrary binary tree — tree, every v
2017-04-27 20:03:03
477
原创 TT打字练习软件(dos)
这几天逛帖子,找练习打字速度的软件,因为金山的不是很适合练习打代码用,字符和数字包含的太少,而且没有什么针对性。然后看到了TT.dos,是个很古老的练习软件,但是试用下来很爽啊。记录下安装和使用方法。第一步:在网上下载TT,这个在csdn下载资源里有,TT+dosbox(windows)下载第二步:找个目录放TT,然后打开dosbox运行,输入。 mount: c
2017-04-27 12:34:42
12529
原创 B. Igor and his way to work
B. Igor and his way to worktime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputWoken up by the alarm clock Igo
2017-04-24 02:28:47
571
原创 A. Oleg and shares
A. Oleg and sharestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOleg the bank client checks share prices
2017-04-24 02:27:21
427
原创 B. Mike and strings
B. Mike and stringstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike has n strings s1, s2, ..., sn each
2017-04-22 16:57:46
1028
原创 A. Mike and palindrome
A. Mike and palindrometime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMike has a string s consisting of on
2017-04-22 16:53:26
387
原创 B. Find The Bone
B. Find The Bonetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZane the wizard is going to perform a magi
2017-04-19 00:04:57
617
原创 A. Buying A House
A. Buying A Housetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputZane the wizard had never loved anyone be
2017-04-18 23:22:24
327
原创 C. Voltage Keepsake
C. Voltage Keepsaketime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have n devices that you want to use
2017-04-18 00:46:30
530
原创 B. Valued Keys
B. Valued Keystime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou found a mysterious function f. The funct
2017-04-18 00:11:17
486
原创 A. Vicious Keyboard
A. Vicious Keyboardtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputTonio has a keyboard with only two lett
2017-04-18 00:07:14
918
原创 E. Array Queries
E. Array Queriestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputa is an array of n positive integers, al
2017-04-18 00:03:53
546
原创 C. Minimal string
C. Minimal stringtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya recieved a gift of a string s with l
2017-04-18 00:00:26
605
原创 B. Odd sum
B. Odd sumtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given sequence a1, a2, ..., an of integ
2017-04-17 23:56:50
810
原创 A. k-Factorization
A. k-Factorizationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGiven a positive integer n, find k integ
2017-04-17 23:53:28
542
原创 L2-014. 列车调度
火车站的列车调度铁轨的结构如下图所示。Figure两端分别是一条入口(Entrance)轨道和一条出口(Exit)轨道,它们之间有N条平行的轨道。每趟列车从入口可以选择任意一条轨道进入,最后从出口离开。在图中有9趟列车,在入口处按照{8,4,2,5,3,9,1,6,7}的顺序排队等待进入。如果要求它们必须按序号递减的顺序从出口离开,则至少需要多少条平行铁轨用于调度?
2017-04-12 01:26:45
1132
原创 L2-013. 红色警报
战争中保持各个城市间的连通性非常重要。本题要求你编写一个报警程序,当失去一个城市导致国家被分裂为多个无法连通的区域时,就发出红色警报。注意:若该国本来就不完全连通,是分裂的k个区域,而失去一个城市并不改变其他城市之间的连通性,则不要发出警报。输入格式:输入在第一行给出两个整数N(0 注意:输入保证给出的被攻占的城市编号都是合法的且无重复,但并不保证给出的通路没有重复。
2017-04-12 01:23:35
252
原创 L2-012. 关于堆的判断
将一系列给定数字顺序插入一个初始为空的小顶堆H[]。随后判断一系列相关命题是否为真。命题分下列几种:“x is the root”:x是根结点;“x and y are siblings”:x和y是兄弟结点;“x is the parent of y”:x是y的父结点;“x is a child of y”:x是y的一个子结点。输入格式:每组测试第1行包
2017-04-12 01:22:09
265
原创 L2-011. 玩转二叉树
给定一棵二叉树的中序遍历和前序遍历,请你先将树做个镜面反转,再输出反转后的层序遍历的序列。所谓镜面反转,是指将所有非叶结点的左右孩子对换。这里假设键值都是互不相等的正整数。输入格式:输入第一行给出一个正整数N(输出格式:在一行中输出该树反转后的层序遍历的序列。数字间以1个空格分隔,行首尾不得有多余空格。输入样例:71 2 3 4 5 6 74 1 3
2017-04-12 01:21:07
460
原创 L2-010. 排座位
布置宴席最微妙的事情,就是给前来参宴的各位宾客安排座位。无论如何,总不能把两个死对头排到同一张宴会桌旁!这个艰巨任务现在就交给你,对任何一对客人,请编写程序告诉主人他们是否能被安排同席。输入格式:输入第一行给出3个正整数:N(这里假设朋友的朋友也是朋友。但敌人的敌人并不一定就是朋友,朋友的敌人也不一定是敌人。只有单纯直接的敌对关系才是绝对不能同席的。输出格式:
2017-04-12 01:19:51
281
原创 L2-009. 抢红包
没有人没抢过红包吧…… 这里给出N个人之间互相发红包、抢红包的记录,请你统计一下他们抢红包的收获。输入格式:输入第一行给出一个正整数N(4),即参与发红包和抢红包的总人数,则这些人从1到N编号。随后N行,第i行给出编号为i的人发红包的记录,格式如下:K N1 P1 ... NK PK其中K(0 i是抢到红包的人的编号,Pi(> 0)是其抢到的红包金额(以分为单位
2017-04-12 01:18:36
292
原创 L2-008. 最长对称子串
对给定的字符串,本题要求你输出最长对称子串的长度。例如,给定"Is PAT&TAP symmetric?",最长对称子串为"s PAT&TAP s",于是你应该输出11。输入格式:输入在一行中给出长度不超过1000的非空字符串。输出格式:在一行中输出最长对称子串的长度。输入样例:Is PAT&TAP symmetric?输出样例:11
2017-04-12 01:17:26
188
原创 L2-007. 家庭房产
给定每个人的家庭成员和其自己名下的房产,请你统计出每个家庭的人口数、人均房产面积及房产套数。输入格式:输入第一行给出一个正整数N(编号 父 母 k 孩子1 ... 孩子k 房产套数 总面积其中 编号 是每个人独有的一个4位数的编号;父 和 母 分别是该编号对应的这个人的父母的编号(如果已经过世,则显示-1);k(0孩子i是其子女的编号。输出格式:首先
2017-04-12 01:15:40
303
原创 L2-006. 树的遍历
给定一棵二叉树的后序遍历和中序遍历,请你输出其层序遍历的序列。这里假设键值都是互不相等的正整数。输入格式:输入第一行给出一个正整数N(输出格式:在一行中输出该树的层序遍历的序列。数字间以1个空格分隔,行首尾不得有多余空格。输入样例:72 3 1 5 7 6 41 2 3 4 5 6 7输出样例:4 1 6 3 5 7 2
2017-04-12 01:14:10
534
原创 L2-005. 集合相似度
给定两个整数集合,它们的相似度定义为:Nc/Nt*100%。其中Nc是两个集合都有的不相等整数的个数,Nt是两个集合一共有的不相等整数的个数。你的任务就是计算任意一对给定集合的相似度。输入格式:输入第一行给出一个正整数N(4),是集合中元素的个数;然后跟M个[0, 109]区间内的整数。之后一行给出一个正整数K(输出格式:对每一对需要计算的集合,在一行中
2017-04-12 01:12:57
378
原创 L2-004. 这是二叉搜索树吗
一棵二叉搜索树可被递归地定义为具有下列性质的二叉树:对于任一结点,其左子树中所有结点的键值小于该结点的键值;其右子树中所有结点的键值大于等于该结点的键值;其左右子树都是二叉搜索树。所谓二叉搜索树的“镜像”,即将所有结点的左右子树对换位置后所得到的树。给定一个整数键值序列,现请你编写程序,判断这是否是对一棵二叉搜索树或其镜像进行前序遍历的结果。输入格式
2017-04-12 01:10:33
379
原创 L2-003. 月饼
月饼是中国人在中秋佳节时吃的一种传统食品,不同地区有许多不同风味的月饼。现给定所有种类月饼的库存量、总售价、以及市场的最大需求量,请你计算可以获得的最大收益是多少。注意:销售时允许取出一部分库存。样例给出的情形是这样的:假如我们有3种月饼,其库存量分别为18、15、10万吨,总售价分别为75、72、45亿元。如果市场的最大需求量只有20万吨,那么我们最大收益策略应该是卖出全部15万吨第2种
2017-04-12 01:06:52
309
原创 L2-002. 链表去重
给定一个带整数键值的单链表L,本题要求你编写程序,删除那些键值的绝对值有重复的结点。即对任意键值K,只有键值或其绝对值等于K的第一个结点可以被保留。同时,所有被删除的结点必须被保存在另外一个链表中。例如:另L为21→-15→-15→-7→15,则你必须输出去重后的链表21→-15→-7、以及被删除的链表-15→15。输入格式:输入第一行包含链表第一个结点的地址、以及结点个数N(
2017-04-12 01:05:21
282
原创 L2-001. 紧急救援
L2-001. 紧急救援作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援队数量和每一条连接两个城市的快速道路长度都标在地图上。当其他城市有紧急求助电话给你的时候,你的任务是带领你的救援队尽快赶往事发地,同时,一路上召集尽可能多的救援队。输入格式:输入第一行给出4个正整数N、M、S、D,其中N(2
2017-04-12 01:04:38
335
原创 Dijkstra算法
L2-001. 紧急救援时间限制200 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越作为一个城市的应急救援队伍的负责人,你有一张特殊的全国地图。在地图上显示有多个分散的城市和一些连接城市的快速道路。每个城市的救援
2017-04-08 23:42:55
229
原创 G - stl 的 优先队列
In a speech contest, when a contestant finishes his speech, the judges will then grade his performance. The staff remove the highest grade and the lowest grade and compute the average of the rest as t
2017-04-06 23:58:07
362
原创 C - stl 的 map
夏天来了~~好开心啊,呵呵,好多好多水果~~ Joe经营着一个不大的水果店.他认为生存之道就是经营最受顾客欢迎的水果.现在他想要一份水果销售情况的明细表,这样Joe就可以很容易掌握所有水果的销售情况了. Input第一行正整数N(0每组测试数据的第一行是一个整数M(0Output对于每一组测试数据,请你输出一份排版格式正确(请分析样本输出)的水果销售情况明细表.这份明细表包括所
2017-03-29 13:10:08
284
原创 B - stl 的 map
Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leaves. Now Ignatius want
2017-03-28 22:23:53
313
原创 A - stl 的 map
Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When the contest is over, they will cou
2017-03-28 17:20:37
235
原创 S - Counterfeit Dollar
S - Counterfeit DollarSally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even though its color and size make it i
2017-03-26 19:46:04
268
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人