数学
文章平均质量分 80
C_K_Y_
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
codeforces 856c Eleventh Birthday
C. Eleventh Birthdaytime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputIt is Borya's eleventh birthday, and he has got a great present: n cards with ...原创 2018-02-26 11:08:49 · 628 阅读 · 0 评论 -
codeforces895c Square Subsets
C. Square Subsetstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya was late for the lesson too. The teacher gave him an additional task. For s...原创 2018-02-27 16:40:18 · 558 阅读 · 0 评论 -
codeforces900D Unusual Sequences
D. Unusual Sequencestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputCount the number of distinct sequences a1, a2, ..., an (1 ≤ ai) consisting of p...原创 2018-02-27 16:33:35 · 395 阅读 · 0 评论 -
codeforces920G List Of Integers
G. List Of Integerstime limit per test5 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's denote as L(x, p) an infinite sequence of integers y such that gcd(p, y) ...原创 2018-02-27 16:01:26 · 425 阅读 · 0 评论 -
codeforces 908E New Year and Entity Enumeration
E. New Year and Entity Enumerationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an integer m.Let M = 2m - 1.You are also given a s...原创 2018-02-27 15:52:54 · 469 阅读 · 0 评论 -
codeforces 932e Team Work
E. Team Worktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have a team of N people. For a particular task, you can pick any non-empty subset ...原创 2018-02-27 15:43:32 · 477 阅读 · 0 评论 -
codeforces 938e Max History
E. Max Historytime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array a of length n. We define fa the following way:Initially fa = ...原创 2018-02-27 15:35:37 · 536 阅读 · 0 评论 -
codeforces 850b Arpa and a list of numbers
B. Arpa and a list of numberstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputArpa has found a list containing n numbers. He calls a list bad if an...原创 2018-02-27 15:15:51 · 260 阅读 · 0 评论 -
codeforces 893e Counting Arrays
E. Counting Arraystime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given two positive integer numbers x and y. An array F is called an y-fa...原创 2018-02-27 11:46:48 · 516 阅读 · 0 评论 -
codeforces 888D Almost Identity Permutations
D. Almost Identity Permutationstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA permutation p of size n is an array such that every integer from ...原创 2018-02-27 11:27:47 · 548 阅读 · 0 评论 -
codeforces 852F Product transformation
F. Product transformationtime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputConsider an array A with N elements, all being the same integer a.Define ...原创 2018-02-27 11:02:35 · 350 阅读 · 0 评论 -
codeforces 886E&&889C Maximum Element
E. Maximum Elementtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne day Petya was solving a very interesting problem. But although he used many ...原创 2018-02-27 10:55:10 · 792 阅读 · 0 评论 -
snoi多校模拟赛1.15 t3 string
这道题应该是三道里面最良心的一道题了吧。代码量和思维难度都比较小。解法:用trie,先把每个串的长度扩到1000(500*2),然后对于每个点访问时cnt++,最后在所有cnt>1的点中找深度最深的那个,即为答案证明:为什么扩到1000就一定正确呢?懒癌晚期。。。代码:#include <stdio.h>#include <string.h>#include &l...原创 2018-01-15 18:50:11 · 313 阅读 · 0 评论 -
snoi多校模拟赛1.16 t1 光之大陆
原题:bzoj28732873: 光之大陆Time Limit: 10 Sec Memory Limit: 256 MBSubmit: 70 Solved: 33[Submit][Status][Discuss]Description在光之大陆的土地上,各种势力盘根错节。来自光之峡谷的精灵,来自黑暗森林的亡灵,来自古老东方的人类共同生活在一起。善于打造装置的矮人,善于发明的侏儒,隐匿于山林的巨...原创 2018-01-16 21:19:08 · 462 阅读 · 0 评论 -
snoi多校模拟赛 1.16 t2
原题:bzoj29002900: 好玩的数字游戏Time Limit: 10 Sec Memory Limit: 512 MBSubmit: 99 Solved: 59[Submit][Status][Discuss]DescriptionTK在虐题的同时,也喜欢玩游戏。现在,有这样的一个游戏,规则是这样的:先随机给出一个数字N,然后你在操场上把1到N的所有数字写成一排,就像这样:123456...原创 2018-01-16 21:32:10 · 536 阅读 · 0 评论 -
snoi多校模拟赛 1.18 t1 query
A 查询(query.pas/c/cpp)TL:5S ML:512MB【Description】给定一个含有N个非负整数的序列,请写一个程序,支持以下两个操作:1、Q l r 表示求l至r这一段所有数的和,结果对329701061取模2、C l r 表示将l至r这一段中的每一个数变为其立方。【Input】第一行一个整数N。接下来N行,每行一个整数a[i],表示初始序列。接下来一个整数Q,表...原创 2018-01-18 18:12:49 · 305 阅读 · 0 评论 -
snoi多校模拟赛 1.18 t3 home
C 回家(home.pas/c/cpp)TL:3S ML:512MB【Description】 Alice和Bob是一对好兄妹。有一天放学后,他们打算回家。但是,他们还想在路上多玩一会。现在他们有一张地图,地图上标注了小镇的所有的N个地点,以及这些地点之间的道路(道路是无向的),共M条。在这N个地点中,有K个地点他们希望一定经过。同时,他们不希望在外面玩太久,所以他们要求经过的点总数...原创 2018-01-18 22:51:31 · 437 阅读 · 0 评论 -
bzoj2878 [NOI2012] 迷失游乐园 期望+基环树dp
题目描述放假了,小Z觉得呆在家里特别无聊,于是决定一个人去游乐园玩。进入游乐园后,小Z看了看游乐园的地图,发现可以将游乐园抽象成有n个景点、m条道路的无向连通图,且该图中至多有一个环(即m只可能等于n或者n-1)。小Z现在所在的大门也正好是一个景点。小Z不知道什么好玩,于是他决定,从当前位置出发,每次随机去一个和当前景点有道路相连的景点,并且同一个景点不去两次(包括起始景点)。贪玩的小Z会一直游玩...原创 2018-05-25 16:49:04 · 661 阅读 · 0 评论
分享