随笔分类 - Codeforces
摘要:链接: https://codeforces.com/contest/1265/problem/E 题意: Creatnx has n mirrors, numbered from 1 to n. Every day, Creatnx asks exactly one mirror "Am I be
阅读全文
摘要:链接: https://codeforces.com/contest/1265/problem/D 题意: An integer sequence is called beautiful if the difference between any two consecutive numbers is
阅读全文
摘要:链接: https://codeforces.com/contest/1265/problem/C 题意: So the Beautiful Regional Contest (BeRC) has come to an end! n students took part in the contest
阅读全文
摘要:链接: https://codeforces.com/contest/1265/problem/B 题意: You are given a permutation p=[p1,p2,…,pn] of integers from 1 to n. Let's call the number m (1≤m
阅读全文
摘要:链接: https://codeforces.com/contest/1265/problem/A 题意: A string is called beautiful if no two consecutive characters are equal. For example, "ababcb",
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/K 题意: DreamGrid is the keeper of n rabbits. Initially, the i th (1≤i≤n) rabbit has a weight of wi. Every
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/J 题意: The great mathematician DreamGrid proposes a conjecture, which states that: Every positive integer
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/I 题意: DreamGrid has an interesting permutation of 1,2,…,n denoted by a1,a2,…,an. He generates three sequ
阅读全文
摘要:链接: https://codeforces.com/gym/102394/problem/F 题意: Harbin, whose name was originally a Manchu word meaning "a place for drying fishing nets", grew fr
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/D 题意: Shichikuji is the new resident deity of the South Black Snail Temple. Her first job is as follow
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/C 题意: Constanze is the smartest girl in her village but she has bad eyesight. One day, she was able to
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/B 题意: Let n be a positive integer. Let a,b,c be nonnegative integers such that a+b+c=n. Alice and Bob
阅读全文
摘要:链接: https://codeforces.com/contest/1245/problem/A 题意: Consider the set of all nonnegative integers: 0,1,2,…. Given two integers a and b (1≤a,b≤104). W
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/D 题意: You are the head of a large enterprise. n people work at you, and n is odd (i. e. n is not divis
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/C 题意: You are given a huge integer a consisting of n digits (n is between 1 and 3⋅105, inclusive). It
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/B 题意: A palindrome is a string t which reads the same backward as forward (formally, t[i]=t[|t|+1−i] f
阅读全文
摘要:链接: https://codeforces.com/contest/1251/problem/A 题意: Recently Polycarp noticed that some of the buttons of his keyboard are malfunctioning. For simpl
阅读全文
摘要:链接: https://codeforces.com/contest/1247/problem/D 题意: You are given n positive integers a1,…,an, and an integer k≥2. Count the number of pairs i,j suc
阅读全文
摘要:链接: https://codeforces.com/contest/1247/problem/C 题意: Vasya will fancy any number as long as it is an integer power of two. Petya, on the other hand,
阅读全文
摘要:链接: https://codeforces.com/contest/1247/problem/B2 题意: The only difference between easy and hard versions is constraints. The BerTV channel every day
阅读全文

浙公网安备 33010602011771号