- 博客(31)
- 收藏
- 关注
原创 IntelliJ IDEA 2019.2.3中文乱码问题
最后发现改**Editor-Gener-Font中的字体Font和备用字体Fallback Font**设置能成功...原因大概是因为图中Consolas字体并不支持中文 所以给备用字体选择一个支持中文的就好了(事后我在网上看到了有 “**雅黑 - Consolas 混合字体**” 这个东西
2019-10-03 12:12:00
4632
3
原创 从C到C++学习笔记
C++从C发展而来,它继承了C语言的优点,并引入了面向对象的概念,同时也增加了一些非面向对象的新特性,这些新特性使得C+ +比C更简洁、更安全。
2019-08-03 12:33:31
1186
4
转载 [转]Win10屏幕亮度无法调节(屏幕亮度显示为灰色)
在一个遥远的时间。。。突然不知为何笔记本不能调节屏幕亮度了,但是当时有外接显示器就没太在意,如今放寒假回家只带来的一个本本,发现屏幕好暗,敲代码的时候贼难受,处女座的我愣是研究了一个下午。哎。。。都是泪。。。。笔者尝试过网上提供的很多方法,例如添加注册表(没用)、更新核显驱动(刚更新完屏幕变成最亮,重启后还是不能调节)、等等。。。假如有和我一样的小伙伴,就要思考一下了,是不是装过Teamv...
2019-07-29 19:41:25
2032
1
原创 [ZOJ - 4090] Thanks, TuSimple!
题意:举办派对,不同身高(无相同)男士和女士去跳舞,0表示会与较矮的异性跳,1表示会与较高的异性跳。问你最多有多少对舞伴。把四种人放在四个独立的数组并按身高排序,然后数组男0和女1,男1和女0两次计算。重点是!!!遍历的时候j不需要每次都从0开始....(已经排好序了 依次匹配就好)
2019-04-15 20:02:35
308
原创 [LightOJ - 1282] Leading and Trailing
DescriptionYou are given two integers:nandk, your task is to find the most significant three digits, and least significant three digits ofnk.InputInput starts with an integerT (≤ 1000), den...
2019-03-17 10:44:08
139
原创 [HDU - 2710] Max Factor
Problem DescriptionTo improve the organization of his farm, Farmer John labels each of his N (1 <= N <= 5,000) cows with a distinct serial number in the range 1..20,000. Unfortunately, he is u...
2019-03-16 23:56:15
213
原创 [HDU - 4548] 美素数
Description小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 =11也是素数,所以它是美素数。给定一个区间,你能计算出这个区间内有多少个美素数吗?Input第一行输入一个正整数T,表示总共有T组数据(T &l...
2019-03-16 23:46:57
167
原创 [HDU - 2256] Problem of Precision(矩阵快速幂)
InputThe first line of input gives the number of cases, T. T test cases follow, each on a separate line. Each test case contains one positive integer n. (1 <= n <= 10^9)OutputFor each i...
2019-03-16 23:39:20
135
原创 [USACO18OPEN] Lemonade Line
DescriptionIt's a hot summer day out on the farm, and Farmer John is serving lemonade to hisNcows! AllNcows (conveniently numbered1…N) like lemonade, but some of them like it more than others. ...
2019-03-16 23:13:44
305
原创 [USACO] Team Tic Tac Toe
DescriptionFarmer John owns 26 cows, which by happenstance all have names starting with different letters of the alphabet, so Farmer John typically refers to each cow using her first initial – a cha...
2019-03-16 23:06:13
496
原创 [USACO18OPEN] Out of Sorts S
DescriptionKeeping an eye on long term career possibilities beyond the farm, Bessie the cow has started learning algorithms from various on-line coding websites.Her favorite algorithm thus far is ...
2019-03-16 22:54:03
158
原创 Teleportation
DescriptionOne of the farming chores Farmer John dislikes the most is hauling around lots of cow manure. In order to streamline this process, he comes up with a brilliant invention: the manure telep...
2019-03-16 22:45:46
208
原创 [USACO18FEB] Rest Stops(贪心)
DescriptionFarmer John and his personal trainer Bessie are hiking up Mount Vancowver. For their purposes (and yours), the mountain can be represented as a long straight trail of lengthLmeters (1≤L...
2019-03-16 22:34:33
430
原创 [USACO18DEC] Back and Forth
DescriptionFarmer John has two milking barns, each of which has a large milk tank as well as a storage closet containing10 buckets of various sizes. He likes to carry milk back and forth between t...
2019-03-16 22:21:29
511
原创 Taming the Herd
DescriptionEarly in the morning, Farmer John woke up to the sound of splintering wood. It was the cows, and they were breaking out of the barn again!Farmer John was sick and tired of the cows' mor...
2019-03-16 21:58:47
138
原创 [USACO18DEC] Mixing Milk (模拟)
解析题意:有三只桶,读入桶的容量和初始牛奶量。然后他将桶1的牛奶倒入桶2,然后将桶2中的牛奶倒入桶3,然后将桶3中的牛奶倒入桶1,然后再将桶1的牛奶倒入桶2,如此周期性地操作,共计进行100次。最后输出三个桶的牛奶量。每次保证直到前一个桶被倒空或是后一个桶被倒满。思路:模拟倒牛奶过程就好了
2019-03-14 13:04:27
854
原创 [USACO18DEC] Mooyo Mooyo (DFS+码量)
洛谷传送:点击传送(中文题面)这题题面看不懂的时候,看下note会好很多DescriptionWith plenty of free time on their hands (or rather, hooves), the cows on Farmer John's farm often pass the time by playing video games. One of thei...
2019-03-14 12:47:54
347
原创 [USACO18DEC] The Bucket List
洛谷传送:点击传送(中文题面)题意:有N头奶牛,每头奶牛产奶开始时间si,结束时间ti,需要桶bi,求最少需要多少只桶能满足所有奶牛需求。看数据可知道时间最多为1000,所以可以直接按每一刻时间来分析。思路:枚举每一个时间需要的桶,寻找最大值即为答案。#include<iostream>#include<cstdio>#include<cst...
2019-03-14 12:21:47
567
原创 [Codeforces 500C] New Year Book Reading (贪心?)
解析题意:给n本书你,每本书对应一个重量。要看m天的书,当天要看的书需要放在表面。如果当天要看的书被压着,就要抽起上面的书(lift),最后算总共lift的最小值。(具体过程可看Hint图片)思路:想要lift最小,自然就是把要看的书放在前面。按照看书的顺序(第一次出现)排好顺序,然后模拟过程,得到的即为答案。
2019-03-14 11:08:52
133
原创 [Codeforces 115B] Lawnmower
题目传送门:点击传送Time limit per test:2 secondsMemory limit per test:256 megabytesDescriptionYou have a garden consisting entirely of grass and weeds. Your garden is described by ann × mgrid, with...
2019-03-02 12:01:53
305
1
原创 [Codeforces 1015E1] Stars Drawing (Easy Edition)
题目传送门:点击传送Time limit per test:3 secondsMemory limit per test:256 megabytesDescriptionAstaris a figure of the following type: an asterisk character '*' in the center of the figure and four ...
2019-03-01 22:16:52
471
原创 [Codeforces80B] Depression
题目传送门:点击传送Time limit per test:1 secondMemory limit per test:256 megabytesDescriptionDo you remember a kind cartoon "Beauty and the Beast"? No, no, there was no firing from machine guns or ra...
2019-02-20 15:26:49
202
原创 [Codeforces 948A] Protect Sheep (DFS)
题目传送门:点击传送Time limit per test:1 secondMemory limit per test:256 megabytesDescriptionBob is a farmer. He has a large pasture with many sheep. Recently, he has lost some of them due to wolf at...
2019-02-20 14:56:25
299
原创 [POJ - 1979] Red and Black(DFS)
题意:从'@'开始走能到达多少个'.',注意'#'是障碍,被它围起来的'.'是走不了的。
2019-02-20 14:23:59
245
原创 [POJ - 2386] Lake Counting (简单的DFS)
一个鱼塘定义:一个W和它八连通方向(上下左右+四个45度方向)连成的一块W算一个鱼塘。如样例,有三块W,所以是三个鱼塘。比较明显的一个图的搜索,这题我用DFS的做法。
2019-02-20 12:47:20
311
原创 [Gym - 101375H]MaratonIME gets candies(交互+二分)
一个猜数字游戏。非常有趣的交互题目,你猜电脑给的是什么数字,然后电脑回答你他的数(answer)和你的数(guess)的关系。
2019-02-01 16:14:43
385
原创 [HYSBZ - 1734] Aggressive cows 愤怒的牛(二分)
1734: [Usaco2005 feb]Aggressive cows 愤怒的牛DescriptionFarmer John has built a new long barn, with N (2 &amp;amp;amp;amp;lt;= N &amp;amp;amp;amp;lt;= 100,000)stalls. The stalls are located along a straight line at positionsx1,…,xN...
2019-02-01 15:38:50
346
原创 [POJ - 3061] Subsequence(尺取法)
[POJ - 3061] Subsequence此题要寻找最小长度的连续子序列和最大值(尺取法)
2019-02-01 14:24:21
222
原创 This is first passage(aha,just for fun)
nothing to say.#include &amp;lt;stdio.h&amp;gt;int main(){ printf(&quot;Oh,my blog!&quot;); return 0}
2019-01-19 22:47:02
119
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人