UVA
TccccD
这个作者很懒,什么都没留下…
展开
-
UVa-1585-Score
There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problemand an ‘X’ means a wrong answer. The score of each problem of this test is calculated by itself andits原创 2017-01-17 00:07:02 · 212 阅读 · 0 评论 -
UVa-1586 - Molar mass
An organic compound is any member of a large class of chemicalcompounds whose molecules contain carbon. The molarmass of an organic compound is the mass of one mole of theorganic compound. The m原创 2017-01-17 00:15:40 · 312 阅读 · 0 评论 -
UVa-1225 - Digit Counting
Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequenceof consecutive integers starting with 1 to N (1 times each digit (0 to 9) appears in the seque原创 2017-01-17 00:19:41 · 257 阅读 · 0 评论 -
UVa-455 - 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 length k. For example, the string ”abcabcabcabc” has period 3, since it i原创 2017-01-17 00:23:13 · 317 阅读 · 0 评论 -
UVa-227 - Puzzle
这题真是搞了很久,输出格式一直有错,仅供参考,代码很臃肿。#include #include char a[1001];char s[5][5];int main() { int key=0; while (gets(s[0])) { if (s[0][0]=='Z'){ return 0; }原创 2017-01-17 00:28:56 · 323 阅读 · 0 评论 -
UVa-232 Crossword Answers
A crossword puzzle consists of a rectangular grid of black andwhite squares and two lists of definitions (or descriptions).One list of definitions is for “words” to be written left toright acros原创 2017-01-17 00:32:07 · 288 阅读 · 0 评论 -
UVa ---10391 - Compound Words
这道题主要用来练习stl 的 map 以及string的substr贴上代码#include #include #include using namespace std;mapaa;string s[150005];int main(){ int cnt=0; string a ,b; while (cin>>s[cnt])aa[s[cnt++]]=原创 2017-02-17 22:44:28 · 191 阅读 · 0 评论