摘要:
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concate 阅读全文
摘要:
lo0:loopback回环地址一般是127.0.0.0,loopback指本地环回接口(或地址),亦称回送地址()。此类接口是应用最为广泛的一种虚接口,几乎在每台路由器上都会使用。 gif0: software Network Interface 软件网络接口 stf0:6to4 tunnel i 阅读全文
摘要:
样例 样例输入 4 add Inside C# find Effective Java add Effective Java find Effective Java 样例输出 no yes 数据范围与提示 n<=30000 1 #include<stdio.h> 2 #include<algorit 阅读全文
摘要:
The football season has just ended in Berland. According to the rules of Berland football, each match is played between two teams. The result of each 阅读全文
摘要:
The string t1t2…tkt1t2…tk is good if each letter of this string belongs to at least one palindrome of length greater than 1. A palindrome is a string 阅读全文
摘要:
You are playing a variation of game 2048. Initially you have a multiset ss of nn integers. Every integer in this multiset is a power of two. You may p 阅读全文
摘要:
求回文串的个数,中心扩展法,占用内存比马拉车小一点点,但代码较马拉车而言简单易懂。 阅读全文
摘要:
Monocarp has got two strings ss and tt having equal length. Both strings consist of lowercase Latin letters "a" and "b". Monocarp wants to make these 阅读全文
摘要:
参考公众号:https://mp.weixin.qq.com/s?src=11×tamp=1576558053&ver=2039&signature=mN7nJghjPUfRJJ16i67HUNkjeTL5gz3ietls7XFab6PuX*ZA2Em-YMBe4s7CZkVxWjbHRI 阅读全文
摘要:
double定义的变量输入的时候一定要%lf输入,要是%f输入的话,得到的结果会是0 float输入的时候是%f 但是在输出的时候%lf和%f都可以输出 建议使用double类型时,用%lf输入,%f输出避免出错。 阅读全文