摘要: 题目链接 http://poj.org/problem?id=2115题目意思就解这样一个同余方程 A+CX≡B(mod)M 这里 M = 1 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #inc... 阅读全文
posted @ 2015-11-02 19:48 lmlyzxiao 阅读(119) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=2891题意:选择K个不同的正整数a1,a2.....ak,对于某个整数m分别对ai求余对应整数ri,如果当选择a1,a2,....ak,那么m可由整数对组合(ai,ri)唯一确定。现在已知a1,a2,...ak以及所有的整数对(ai,ri)求最小... 阅读全文
posted @ 2015-11-02 19:32 lmlyzxiao 阅读(1260) 评论(0) 推荐(0)
摘要: C. The Big Racetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputVector Willman and Array Bolt are ... 阅读全文
posted @ 2015-11-02 10:51 lmlyzxiao 阅读(133) 评论(0) 推荐(0)
摘要: B. The Monster and the Squirreltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAri the monster al... 阅读全文
posted @ 2015-11-02 10:48 lmlyzxiao 阅读(183) 评论(0) 推荐(0)
摘要: A. PawnChesstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGalois is one of the strongest chess ... 阅读全文
posted @ 2015-11-02 10:47 lmlyzxiao 阅读(119) 评论(0) 推荐(0)