Broken Keyboard (a.k.a. Beiju Text) UVA - 11988 用stl的链表做的,模拟链表的方法暂时没学会,先给自己挖个坑,以后来填。 注意点: 1.一定要及时更新it的位置it=s.insert(it,ch);,如果写成s.insert(it,ch);,it的位置 ...
分类:
其他好文 时间:
2019-05-19 23:20:13
阅读次数:
125
Necklace HDU - 3874 Mery has a beautiful necklace. The necklace is made up of N magic balls. Each ball has a beautiful value. The balls with the same ...
分类:
编程语言 时间:
2019-05-09 18:28:04
阅读次数:
108
CF24D Broken robot 题目背景 小小迪带你吃瓜 题目描述 给出一个 n×m 的矩阵区域,一个机器人初始在第 x 行第 y 列,每一步机器人会等概率 的选择停在原地,左移一步,右移一步,下移一步,如果机器人在边界则丌会往区域外移动, 问机器人到达最后一行的期望步数。 输入输出格式 输入 ...
分类:
其他好文 时间:
2019-04-15 23:19:07
阅读次数:
169
本文介绍3种TCP连接异常的情况。 1.server端没有启动,client尝试连接 通过tcpdump抓包,可以看到当server没有启动的时候,client向server8080端口发送数据后,client端会收到RST。 2.client端读数据,突然异常退出或直接close连接 2.1 准备 ...
分类:
其他好文 时间:
2019-04-13 21:47:57
阅读次数:
221
题意 D. Broken robottime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou received as a gift a very ...
分类:
其他好文 时间:
2019-04-07 22:21:04
阅读次数:
178
On a broken keyboard, some of the keys are always stucked. So when you type some sentences, the characters corresponding to those keys will appear rep ...
分类:
其他好文 时间:
2019-02-26 16:57:24
阅读次数:
163
On a broken calculator that has a number showing on its display, we can perform two operations: Double: Multiply the number on the display by 2, or; D ...
分类:
其他好文 时间:
2019-02-11 01:07:39
阅读次数:
202
2019-02-09-21:55:23 原题链接 题目描述: 给定一串珠子的颜色对,每颗珠子的两端分别有颜色(用1 - 50 之间的数字表示,对每颗珠子的颜色无特殊要求),若两颗珠子的连接处为同种颜色则可以相连, 当整串珠子都满足两两可以相连时则输出连接序列,否则输出some beads may b ...
分类:
其他好文 时间:
2019-02-10 09:29:58
阅读次数:
173
1)Dealing with the client sideFirst of all, to deal on the client side /etc/ssh/ssh_configor ~/.ssh/configto describe the contents of two following.$ ... ...
分类:
其他好文 时间:
2019-02-01 13:04:44
阅读次数:
335