![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
小伙子开的什么车啊
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #460 (Div. 2)-D Substring(Tarjian+记忆化搜索)
D. Substring You are given a graph with n nodes and m directed edges. One lowercase letter is assigned to each node. We define a path's value as the number of the most frequently occurring letter. For example,原创 2018-02-01 10:18:32 · 202 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) C. Cave Painting(暴力)
C. Cave Painting time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Imp is watching a documentary about cave painting. Some numbers, carved ...原创 2018-02-26 20:07:29 · 151 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) B. Magic Forest(DFS)
B. Magic Forest time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Imp is in a magic forest, where xorangles grow (wut?)A xorangle of order n原创 2018-02-26 19:57:38 · 135 阅读 · 0 评论 -
Codeforces Round #461 (Div. 2) D. Robot Vacuum Cleaner(sort)
D. Robot Vacuum Cleaner time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Pushok the dog has been chasing Imp for a few hours already.Fortuna原创 2018-02-26 20:19:22 · 133 阅读 · 0 评论 -
Codeforces Round #469 (Div. 2)B. Intercepted Message
B. Intercepted Message time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard output Hacker Zhorik wants to decipher two secret messages he intercepted y原创 2018-03-10 09:25:29 · 204 阅读 · 0 评论 -
Codeforces Round #469 (Div. 2)C. Zebras(贪心)
C. Zebras time limit per test1 second memory limit per test512 megabytes inputstandard input outputstandard output Oleg writes down the history of the days he lived. For each day he decides if it原创 2018-03-10 09:44:58 · 199 阅读 · 0 评论 -
Codeforces Round #469 (Div. 2)D. A Leapfrog in the Array(递推)
D. A Leapfrog in the Array time limit per test2 seconds memory limit per test512 megabytes inputstandard input outputstandard output Dima is a beginner programmer. During his working process, he r原创 2018-03-10 10:01:33 · 200 阅读 · 0 评论 -
Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 2) C.Alternating Sum
题目;这里写链接内容 题意:求 这里si是给定的一串正负号组成的字符,表示1~k项的符号,n+1可以整除k,即所求数列的符号是k循环的,a[i]=a[i+k]。 思路:由题意,很明显,这是一个等比数列,先用快速幂求出前k项的和a1,即等比数列的首项,n+1/k即是长度,套用等比数列求和公式即可。要用到逆元。 #include <stdio.h> #include <a...原创 2018-05-02 21:34:02 · 208 阅读 · 0 评论