随笔分类 - 算法竞赛
摘要:#include<iostream> #include<stdio.h> #include<algorithm> #include<math.h> using namespace std; int par[103]; struct Island { int x,y; } isl[103]; stru
        阅读全文
            
摘要:C - 食物链 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1182 C - 食物链 Submit Status Practice POJ 1182 D
        阅读全文
            
摘要:The Suspects Time Limit: 1000MS Memory Limit: 20000K Total Submissions: 30522 Accepted: 14836 Description Severe acute respiratory syndrome (SARS), an
        阅读全文
            
摘要://#include<bits/stdc++.h> #include<iostream> #include<stdio.h> #define max1 50005 using namespace std; int pa[max1],vis[max1]; int find(int a) { while
        阅读全文
            
摘要:Description 严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从2003年3月中旬开始被认为是全球威胁。为了减少传播给别人的机会, 最好的策略是隔离可能的患者。 在Not-Spreading-Your-Sickness大学( NSYSU), 有许多学生团体。同一组的学生
        阅读全文
            
摘要:http://acm.zzkun.com/archives/717 这个大神的解答非常,额 猥琐。但是实在是太强了。感觉所有的大数都可以用 long double 了。
        阅读全文
            
摘要:#include<bits/stdc++.h> #define MAX 155 using namespace std; struct Node { int exp; int pat; }mon[155]; int dp[MAX][MAX]; int main() { int n,m,k,s; in
        阅读全文
            
摘要:#include<bits/stdc++.h> using namespace std; struct Bank { double cau; int money; }bank[105]; double dp[10005]; int main() { int n; cin>>n; while(n--)
        阅读全文
            
摘要:Description Input Output Sample Input Sample Output
        阅读全文
            
摘要:Description It's commonly known that the Dutch have invented copper-wire. Two Dutch men were fighting over a nickel, which was made of copper. They we
        阅读全文
            
摘要:这两道题基本思路是一样的,不过uva147的输出实在是个大坑,因为double的问题,所以考虑精度的损失。 代码中的输出部分被我注释掉的那一部分是错误的输出,格式什么的都是正确的,但是存在精度的损失。应该注意一下 hdu1284 Description Input Output Sample Inp
        阅读全文
            
摘要:http://www.cnblogs.com/songacm/p/3537419.html 引用自这篇博客,真·大神
        阅读全文
            
摘要:Description Kefa decided to celebrate his first big salary by going to the restaurant. He lives by an unusual park. The park is a rooted tree consisti
        阅读全文
            
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号