uva
defense881
Noting is impossiable!Believe in yourself!
展开
-
uva 246 5185 10-20-30
10-20-30 A simple solitaire card game called 10-20-30 uses a standard deck of 52playing cards in which suit is irrelevant. The value of a face card (king,queen, jack) is 10. The value of a原创 2014-07-22 14:56:32 · 947 阅读 · 0 评论 -
uva 11889 Benefit(简单数学)
Benefit Recently Yaghoub is playing a new trick to sell some more. When somebody gives him A Tomans, he who never has appropriate changes, asks for B Tomans such that lowest common multiple of原创 2015-01-27 09:09:40 · 895 阅读 · 2 评论 -
uva 11388 GCD LCM(简单数学)
Problem D: GCD LCM Input: standard input Output: standard output The GCD of two positive integers is the largest integer that divides both the integers without any re原创 2015-01-27 08:59:37 · 1104 阅读 · 2 评论 -
uva 10943How do you add?(简单组合)
Problem A: How do you add? Larry is very bad at math - he usually uses a calculator, which worked well throughout college. Unforunately, he is now struck in a deserted island with his good buddy Ry原创 2015-01-27 09:20:13 · 1205 阅读 · 2 评论 -
uva 10673Play with Floor and Ceil(扩展欧几里得算法)
Play with Floor and Ceil Input: standard input Output: standard output Time Limit: 1 second Theorem For any two integers x and k there exists two more integers p and q such that: It’s a f原创 2014-11-18 23:31:01 · 1034 阅读 · 0 评论 -
poj 2942&&uva 3523 Knights of the Round Table(图的连通性)
Knights of the Round Table Time Limit: 7000MS Memory Limit: 65536K Total Submissions: 9663 Accepted: 3129 Description Being a knight is a very attractive career: search原创 2014-08-10 18:42:47 · 870 阅读 · 0 评论 -
poj 1270&& uva 124 Following Orders(拓扑排序、DFS)
Following Orders 点击打开题目链接 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 3756 Accepted: 1483 Description Order is an important concept in mathematics and原创 2014-08-06 20:01:39 · 1116 阅读 · 0 评论 -
uva 10158 War(并查集的简单应用)
Problem B: War 点击打开题目链接 A war is beinglead between two countries, A and B. As a loyal citizen of C, you decide tohelp your country’s espionage by attending the peace-talks taking place t原创 2014-07-28 09:49:33 · 859 阅读 · 0 评论 -
uva 10608 Friends(求并查集集合中元素个数)
Friends There is a town with N citizens. It is known that some pairsof people are friends. According to the famous saying that “The friends of myfriends are my friends, too” it follows that if A a原创 2014-07-27 10:53:15 · 1519 阅读 · 0 评论 -
poj 1363 Rails(栈)
Rails Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 24568 Accepted: 9628 Description There is a famous railway station in PopPush City. Country there is in原创 2014-07-24 19:03:28 · 621 阅读 · 0 评论 -
uva 133 The Dole Queue(约瑟夫变形)
The Dole Queue In a serious attempt to downsize (reduce) the dole queue, The NewNational Green Labour Rhinoceros Party has decided on the followingstrategy. Every day all dole applicants w原创 2014-07-24 09:09:31 · 708 阅读 · 0 评论 -
uva 10780Again Prime? No Time.(简单数论)
Again Prime? No time. Input: standard input Output: standard output Time Limit: 1 second The problem statement is very easy. Given a number n you have to determine the largest power of m, not ne原创 2015-01-27 09:36:51 · 1594 阅读 · 2 评论