![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
思维
文章平均质量分 75
-白羊-
这个作者很懒,什么都没留下…
展开
-
POJ2229 Sumsets——找规律or完全背包
Farmer John commanded his cows to search for different sets of numbers that sum to a given number. The cows use only numbers that are an integer power of 2. Here are the possible sets of numbers that sum to 7: 1+1+1+1+1+1+1 1+1+1+1+1+2 1+1+1+2+2 1+1+1+4 1原创 2021-05-13 23:46:10 · 173 阅读 · 1 评论 -
D. Min Cost String——(构造)Educational Codeforces Round 107 (Rated for Div. 2)
D. Min Cost String time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Let’s define the cost of a string s as the number of index pairs i and j (1≤i<j<|s|) such that si=sj and si+1=sj+1. You are g原创 2021-04-21 15:48:24 · 415 阅读 · 0 评论 -
C. Yet Another Card Deck——(思维)Educational Codeforces Round 107 (Rated for Div. 2)
You have a card deck of n cards, numbered from top to bottom, i. e. the top card has index 1 and bottom card — index n. Each card has its color: the i-th card has color ai. You should process q queries. The j-th query is described by integer tj. For each q原创 2021-04-21 15:35:33 · 188 阅读 · 0 评论 -
B. GCD Length(思维)——Educational Codeforces Round 107 (Rated for Div. 2)
You are given three integers a, b and c. Find two positive integers x and y (x>0, y>0) such that: the decimal representation of x without leading zeroes consists of a digits; the decimal representation of y without leading zeroes consists of b digits原创 2021-04-21 15:06:32 · 372 阅读 · 0 评论 -
Problem B – Buggy ICPC——思维,找规律
Problem B – Buggy ICPC Author : Gabriel Poesia, Brasil Alan Curing is a famous sports programmer. He is the creator of the theoretical model of computation known as the Alan Curing Machine (ACM). He’s most famous for creating his own computer for programmi原创 2021-04-13 00:18:17 · 129 阅读 · 0 评论