摘要:
import java.io.*; import java.math.BigInteger; import java.util.*; public class Main { public static void main(String[] args) { BigInteger ans,Zero; Zero = BigInteger.ZERO; ans = BigInteger.ZERO; Scanner cin = new Scanner(System.in); while(cin.hasNextBig... 阅读全文
posted @ 2013-10-31 20:17
等待最好的两个人
阅读(196)
评论(0)
推荐(0)
摘要:
题目链接:http://codeforces.com/contest/358/problem/D#include#include#include#includeusing namespace std;const int maxn = 3005;int a[maxn],b[maxn],c[maxn];int dp1[maxn],dp2[maxn];int n;int main(){ //freopen("E:\\acm\\input.txt","r",stdin); cin>>n; for(int i=1; i>a[i]; for(int 阅读全文
posted @ 2013-10-31 17:04
等待最好的两个人
阅读(212)
评论(0)
推荐(0)