wcy
galesaur_wcy
我们一起加油啊~~~~
展开
-
2017.07.16小组赛题目D
D - Cooking Competition "Miss Kobayashi's Dragon Maid" is a Japanese manga series written and illustrated by Coolkyoushinja. An anime television series produced by Kyoto Animation aired in Japan原创 2017-07-16 19:39:38 · 330 阅读 · 0 评论 -
1005 继续(3n+1)猜想(25 分)
1005 继续(3n+1)猜想(25 分) 卡拉兹(Callatz)猜想已经在1001中给出了描述。在这个题目里,情况稍微有些复杂。 当我们验证卡拉兹猜想的时候,为了避免重复计算,可以记录下递推过程中遇到的每一个数。例如对 n=3 进行验证的时候,我们需要计算 3、5、8、4、2、1,则当我们对 n=5、8、4、2 进行验证的时候,就可以直接判定卡拉兹猜想的真伪,而不需要重复计算,因为这 4 ...原创 2018-08-30 15:05:17 · 252 阅读 · 0 评论 -
CodeForces 165C Another Problem on Strings
Another Problem on Strings A string is binary, if it consists only of characters "0" and "1". String v is a substring of string w if it has a non-zero length and can be read starting from so原创 2018-01-23 09:27:59 · 254 阅读 · 0 评论 -
1546: 回形取数
1546: 回形取数题目描述输入输出样例输入3 3 1 2 3 4 5 6 7 8 9样例输出1 4 7 8 9 6 3 2 5c++代码:#include<iostream> #include<cstring> using namespace std; int main(){ int m,n; ...原创 2017-07-29 19:32:56 · 251 阅读 · 0 评论 -
HDU - 2689 (逆序数)
HDU - 2689 You want to processe a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order. Then how many times it need. For exam转载 2017-08-13 10:22:34 · 189 阅读 · 0 评论 -
C - The Smallest String Concatenation CodeForces - 632C(按字典序列排列 )string或者数组
The Smallest String Concatenation CodeForces - 632C You're given a list of n strings a1, a2, ..., an. You'd like to concatenate them together in some order such that the resulting string w转载 2017-08-18 19:01:14 · 186 阅读 · 0 评论 -
Number Sequence (啥啥啥思维)
Number Sequence A single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk. Each group Sk consists of a sequence转载 2017-08-18 20:29:33 · 705 阅读 · 0 评论 -
补题
CodeForces - 574A Limak is a grizzly bear who desires power and adoration. He wants to win in upcoming elections and rule over the Bearland. There are n candidates, including Lim原创 2017-11-05 19:20:06 · 276 阅读 · 0 评论 -
F - Substrings(一些函数的运用)
F - Substrings(一些函数的运用) You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any o原创 2017-11-10 21:03:06 · 1037 阅读 · 0 评论 -
Milk(emmmmm)
Milk Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 46 Accepted Submission(s) : 15 Problem Description Ignatius drinks milk everyday, now转载 2017-10-15 19:23:36 · 458 阅读 · 0 评论 -
T - hiho字符串 HihoCoder - 1485 (..map的使用把)
T - hiho字符串 HihoCoder - 1485 (map) 如果一个字符串恰好包含2个'h'、1个'i'和1个'o',我们就称这个字符串是hiho字符串。 例如"oihateher"、"hugeinputhugeoutput"都是hiho字符串。 现在给定一个只包含小写字母的字符串S,小Hi想知道S的所有子串中,最短的hiho字符串是哪个。 Input 字符串S 对于原创 2017-10-10 11:23:11 · 376 阅读 · 0 评论 -
E - New Year and North Pole CodeForces - 750B(状态处理下就好了)
In this problem we assume the Earth to be a completely round ball and its surface a perfect sphere. The length of the equator and any meridian is considered to be exactly 40 000 kilometers. Thus, tra原创 2017-09-08 16:13:22 · 187 阅读 · 0 评论 -
B - 好数 51Nod - 1717
有n个数 a1,a2,...,an 开始都是0 现在进行操作 t从1~n依次增加 每次把下标时t的倍数的数都反转(0变成1,1变成0) 如果最后ai 为0,那么称此时的i为好数。 现在对于给定的n,求这时候的好数个数。 n Input 一个数n,表示有n个数。(nOutput 一个数,表示好数的个数。 Sample Input 2 Sample Output 1原创 2017-08-24 09:07:10 · 211 阅读 · 0 评论 -
HDU - 2047
今年的ACM暑期集训队一共有18人,分为6支队伍。其中有一个叫做EOF的队伍,由04级的阿牛、XC以及05级的COY组成。在共同的集训生活中,大家建立了深厚的友谊,阿牛准备做点什么来纪念这段激情燃烧的岁月,想了一想,阿牛从家里拿来了一块上等的牛肉干,准备在上面刻下一个长度为n的只由"E" "O" "F"三种字符组成的字符串(可以只有其中一种或两种字符,但绝对不能有其他字符),阿牛同时禁止在串中出现原创 2017-08-24 09:05:21 · 470 阅读 · 0 评论 -
2017.07.16小组赛题目I
I - 和为k的连续区间 一整数数列a1, a2, ... , an(有正有负),以及另一个整数k,求一个区间 i,ji,j,(1 ii + ... + ajj = k。 Input第1行:2个数N,K。N为数列的长度。K为需要求的和。(2 第2 - N + 1行:Aii(-10^9 ii <= 10^9)。 Output如果没有这样的序列输出No Solu原创 2017-07-16 19:57:25 · 331 阅读 · 0 评论 -
Codeforces Round #480 (Div. 2) C. Posterized
Posterized Professor Ibrahim has prepared the final homework for his algorithm’s class. He asked his students to implement the Posterization Image Filter. Their algorithm will be tested on an array ...原创 2019-03-22 09:58:15 · 150 阅读 · 0 评论