![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法入门经典
文章平均质量分 62
ColorlessSilver
这个作者很懒,什么都没留下…
展开
-
算法竞赛入门经典 第三章 uVA455 - Periodic Strings
Periodic Strings A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string "abcabcabcabc" has pe原创 2014-12-17 20:51:38 · 926 阅读 · 0 评论 -
算法竞赛入门经典 第三章 uVa1225 - Digit Counting
Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of consecutive integers starting with 1 to N (1 < N < 10000) . After that, he counts the number o原创 2014-12-17 11:54:31 · 530 阅读 · 0 评论 -
算法竞赛入门经典 第三章 uVa10340 - All in All
Problem EAll in AllInput: standard inputOutput: standard outputTime Limit: 2 secondsMemory Limit: 32 MBYou have devised a new encryption technique which encodes a message by inserting betw原创 2014-12-20 20:32:24 · 500 阅读 · 0 评论 -
算法竞赛入门经典 第三章 uVA202 - Repeating Decimals
Repeating Decimals The decimal expansion of the fraction 1/33 is tex2html_wrap_inline43 , where the tex2html_wrap_inline45 is used to indicate that the cycle 03 repeats indefinitely with no interv原创 2014-12-21 18:26:23 · 677 阅读 · 0 评论 -
算法竞赛入门经典 第三章 uVA1368 - DNA Consensus String
DNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely Adenine, Thymine, Guanine, and Cytosine as shown in Figure 1. If原创 2014-12-22 19:46:39 · 446 阅读 · 0 评论 -
算法竞赛入门经典 第三章 uVa1586 - Molar mass
An organic compound is any member of a large class of chemical compounds whose molecules contain carbon. The molar mass of an organic compound is the mass of one mole of the organic compound. The mola原创 2014-12-20 21:10:41 · 663 阅读 · 0 评论 -
算法竞赛入门经典 第三章 uVA1585 - Score
#include#includeusing namespace std;int main(){ int n,i; int a[100]; string str; int count = 1, sum = 0; cin >> n; getchar(); for (i = 0; i < n; ++i) { sum = 0; getline(cin, str); fo原创 2014-12-06 16:55:12 · 426 阅读 · 0 评论