POJ 3307 Smart Sister】的更多相关文章

题意: 给i,求由仅以2,3,5,7为因子的数中第i个是多少. 分析: 打表. 代码: //poj 3307 //sep9 #include <iostream> using namespace std; typedef unsigned __int64 INT; const int maxL=66062; INT a[maxL+10]; INT min4(INT a,INT b,INT c,INT d) { return min(min(a,b),min(c,d)); } int main(…
先找出所有的数,排序,然后o(1)效率询问 #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #include<map> using namespace std; ]; int tot; map<long long, int>Cun; const long long INF = 1e18; void init() { tot = ; Cun.c…
http://poj.org/problem?id=2184   Description "Fat and docile, big and dumb, they look so stupid, they aren't much fun..." - Cows with Guns by Dana Lyons The cows want to prove to the public that they are both smart and fun. In order to do this,…
初看题目时就发了个错误,我因为没有耐心看题而不了解题目本身的意思,找不到做题的突破口,即使看了一些题解,还是没有想到方法. 后来在去问安叔,安叔一语道破天机,问我有没有搞清题目的意思,我才恍然大悟,做题当然要先搞懂题目意思,不然做什么题呢!以后一定要再三注意!而且要把每一个细节都注意到! POJ - 2339 Rock, Scissors, Paper Time Limit: 5000MS Memory Limit: 65536KB 64bit IO Format: %I64d & %I64u…
D - Palindrome Time Limit:15000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Practice POJ 3974 Description Andy the smart computer science student was attending an algorithms class when the professor asked the students a…
题目链接:http://poj.org/problem?id=3104                                                                                                      Drying Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 11128   Accepted: 2865 Description It is very…
题目链接: http://poj.org/problem?id=2960 S-Nim Time Limit: 2000MS Memory Limit: 65536K 问题描述 Arthur and his sister Caroll have been playing a game called Nim for some time now. Nim is played as follows: The starting position has a number of heaps, all con…
Walking Race   Description flymouse's sister wc is very capable at sports and her favorite event is walking race. Chasing after the championship in an important competition, she comes to a training center to attend a training course. The center has N…
题目链接:http://poj.org/problem?id=2184 Cow Exhibition Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 9479   Accepted: 3653 Description "Fat and docile, big and dumb, they look so stupid, they aren't much  fun..."  - Cows with Guns by…
提交地址:http://poj.org/problem?id=1012                                                                              Joseph Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 52098   Accepted: 19839 Description The Joseph's problem is notorious…