
找规律
永夜莫明
菜是原罪
展开
-
Beauty of Array
Beauty of ArrayEdward has an array A with N integers. He defines the beauty of an array as the summation of all distinct integers in the array. Now Edward wants to know the summation of the beauty of...原创 2018-11-29 11:10:02 · 386 阅读 · 0 评论 -
Just Random(思维+数学找规律+容斥)
题目链接:https://cn.vjudge.net/problem/HDU-4790Coach Pang and Uncle Yang both love numbers. Every morning they play a game with number together. In each game the following will be done: 1. Coach Pang ...原创 2019-07-02 16:56:11 · 562 阅读 · 0 评论 -
Couple doubi(打表找规律,数论)
Problem DescriptionDouBiXp has a girlfriend named DouBiNan.One day they felt very boring and decided to play some games. The rule of this game is as following. There are k balls on the desk. Every ba...原创 2019-03-17 11:32:07 · 435 阅读 · 0 评论 -
Sierpiński Circumference(阅读理解+找规律+Java大数)
Polish mathematician Wacław Sierpiński(1882-1969) described the 2D geometric figure known as the Sierpińskitriangle as part of his work on set theory in 1915. The triangle, which is really an infini...原创 2019-03-10 14:15:49 · 258 阅读 · 0 评论 -
不容易系列之(3)—— LELE的RPG难题
人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐"),经过多方打探,某资深Cole终于知道了原因,原来,LELE最近研究起了著名的RPG难题:有排成一行的n个方格,用红(Red)、粉(Pink)、绿(Green)三色涂每个格子,每格涂一色,要求任何相邻的方格不能同色,且首尾两格也不同色.求全部的满足要求的涂法.以上就是著名的RPG难...原创 2019-03-04 19:28:21 · 376 阅读 · 0 评论 -
分割平面,分割空间类题目总结
转自:https://www.cnblogs.com/chaosheng/archive/2012/01/26/2329583.html(1) n条直线最多分平面问题题目大致如:n条直线,最多可以把平面分为多少个区域。析:可能你以前就见过这题目,这充其量是一道初中的思考题。但一个类型的题目还是从简单的入手,才容易发现规律。当有n-1条直线时,平面最多被分成了f(...转载 2019-03-04 18:27:58 · 533 阅读 · 0 评论 -
Plus and Square Root (找规律,思维,构造)
题目链接:http://codeforces.com/problemset/problem/715/AZS the Coder is playing a game. There is a number displayed on the screen and there are two buttons, ' + ' (plus) and '' (square root). Initially, ...原创 2019-02-17 16:57:40 · 330 阅读 · 0 评论 -
小a与204(思维,找规律,贪心)
链接:https://ac.nowcoder.com/acm/contest/317/B来源:牛客网复制粘贴可能有问题,可以点链接看题目描述 时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 262144K,其他语言524288K64bit IO Format: %lld题目描述小a非常喜欢204204这个数字,因为′a′+′k′=204。现在他有一个长度为nn的...原创 2019-01-27 22:32:30 · 198 阅读 · 0 评论 -
MUH and House of Cards (找规律+枚举)
题目链接:http://codeforces.com/problemset/problem/471/CPolar bears Menshykov and Uslada from the zoo of St. Petersburg and elephant Horace from the zoo of Kiev decided to build a house of cards. For tha...原创 2019-01-20 13:13:19 · 295 阅读 · 0 评论 -
数数字(找规律+模拟)
数数字Description 统计一下 aaa ⋯ aaa * b(n 个 a × b) 的结果里面有多少个数字d,a,b,d均为一位数。样例解释:3333333333*3=9999999999,里面有10个9。Input 多组测试数据。第一行有一个整数T,表示测试数据的数目。(1≤T≤5000)接下来有T行,每一行表示一组测试数据,有4个整数a,b,d,n。 (...原创 2019-01-20 12:35:39 · 1466 阅读 · 0 评论 -
GZS and String
GZS and Stringhttps://qduoj.com/problem/6?tdsourcetag=s_pctim_aiomsgDescription GZS has two strings s and t.In each step, GZS can select arbitrary character c of s and insert any character d...原创 2019-01-06 00:08:06 · 484 阅读 · 0 评论 -
I'm Bored!(水题,模拟???)
Being a judge is not always an interesting job! For example, it is very boring to wait for the first submission in the contest. So, judges used to entertain themselves using the “I’m Bored” tab in the...原创 2018-12-16 16:43:11 · 563 阅读 · 0 评论 -
Even Numbers(找规律)(组合数杨辉三角)(二进制)
Yousef loves playing with functions in his free time. Today, he invents the following function:Yousef will give you a list of queries, and you need to find the answers for them. For each query, you ...原创 2018-12-16 14:41:31 · 1191 阅读 · 0 评论 -
Beautiful Substrings(预处理)(思维 + 后缀和)
You are given two strings a and b consisting of lowercase English letters. A beautiful substring is defined as a substring of any length of string b such that the first and last letters of it are the ...原创 2018-12-16 12:03:19 · 313 阅读 · 0 评论 -
Covering(4*n铺瓷砖)
Bob’s school has a big playground, boys and girls always play games here after school.To protect boys and girls from getting hurt when playing happily on the playground, rich boy Bob decided to cover...原创 2018-12-09 21:09:21 · 447 阅读 · 0 评论 -
Hedwig's Ladder
Hedwig the hamster enjoys exploring networks of hamster tubes. Each day, Hedwig’s ownerrearranges the tubes to form a new network of tubes.One day, Hedwig awoke to find that the network of tubes had...原创 2018-12-08 20:08:20 · 473 阅读 · 0 评论 -
她的名字
她的名字单测试点时限: 4.0 秒内存限制: 512 MB“他走过一个又一个星球,却始终放不下对她的思念。“”深情终究是一趟孤独的旅程,她是他永远的牵绊。”我们每个人心中都有一只小狐狸。我们渴望被自己喜欢的人驯服。爱情是彼此之间至为甜蜜的臣服。我们都是傻痴痴的小狐狸,徒具一副精明的外表。就像你走到哪都挂念着她,想把她写进自己的歌里,成为你们共同的记忆。你想从她全部由数字构成的...原创 2018-12-07 22:14:36 · 311 阅读 · 0 评论 -
ZOJ - 3870 Team Formation 异或 规律
ZOJ - 3870 Team Formation 异或 规律For an upcoming programming contest, Edward, the headmaster of Marjar University, is forming a two-man team from N students of his university.Edward knows the skill le...转载 2018-11-29 11:58:30 · 169 阅读 · 0 评论 -
Beauty Values(思维找规律+贡献思想)
链接:https://ac.nowcoder.com/acm/contest/888/B来源:牛客网题目描述Gromah and LZR have entered the second level. There is a sequence a1,a2,⋯ ,ana_1, a_2, \cdots, a_na1,a2,⋯,anon the wall.There is a...原创 2019-08-12 23:31:24 · 498 阅读 · 0 评论