![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM算法竞赛
DS_agent
这个作者很懒,什么都没留下…
展开
-
USA1586 Molar mass
原题:代码:#include #include #include #define maxn 80char chem[maxn];int main() { using namespace std; int T, n; int i; double mass, per; char c; if (scanf("%d",&T)原创 2016-10-05 15:06:32 · 353 阅读 · 0 评论 -
UVa1585 Score
原题:There is an objective test result such as ``OOXXOXXOOO". An `O' means a correct answer of a problem and an `X' means a wrong answer. The score of each problem of this test is calculated by it原创 2016-10-05 15:12:19 · 475 阅读 · 0 评论 -
UVa401 Palindromes
原题:输入一个字符串,判断它是否为回文串以及镜像串。输入字符串保证不含数字0。所谓回文串,即反转后和原串相同,如abba和madam。所谓镜像串, 是指左右镜像后原串相同,如 2S 和 3AIAE. 注意,并不是所有的字符在镜像之后都会得到一个合法字符。每个字符的镜像如下图所示:CharacterReverseCharacterReverseCharacte原创 2016-10-04 02:08:47 · 657 阅读 · 0 评论 -
UVa1584 Circular Sequence
Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence ``CGAGTCAGCT", that is, the last symbol ``T" in ``CGAGTCAGCT" is connected to the first symbol ``C". We always read a circular sequence in the clockwise原创 2016-10-05 17:46:33 · 378 阅读 · 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 . After that, he counts the number of原创 2016-10-05 20:11:01 · 284 阅读 · 0 评论 -
UVa455 Periodic Strings
原题:A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of lengthk. For example, the string ”abcabcabcabc” has period 3, since原创 2016-10-05 21:20:03 · 398 阅读 · 0 评论 -
UVa227 Puzzle
这题的坑在于输出格式。。。原题:A children’s puzzle that was popular 30 years ago consisted of a 5×5 frame which contained 24 smallsquares of equal size. A unique letter of the alphabet was printed on each small原创 2016-10-06 17:41:53 · 431 阅读 · 0 评论 -
UVa1339 Ancient Cipher
原题:Ancient Roman empire had a strong government system with various departments, including a secretservice department. Important documents were sent between provinces and the capital in encryptedf原创 2016-10-06 21:30:23 · 535 阅读 · 0 评论