中国剩余定理
文章平均质量分 78
DTL66
细节决定成败
展开
-
POJ 2891 Strange Way to Express Integers 【中国剩余定理线性模方程合并(模板)】
Strange Way to Express Integers Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Description Elina is reading a book written by Rujia Liu, which introduces a strange way to expr原创 2016-08-23 12:19:29 · 445 阅读 · 0 评论 -
POJ-1006 Biorhythms 【中国剩余定理模板】
C - Biorhythms Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%lld & %llu Submit Status Practice Description 人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人原创 2016-08-21 22:02:10 · 434 阅读 · 0 评论 -
HDU-1573 X问题 【二元一次方程(讨论)+CRT(模方程合并)】
D - X问题 Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Description 求在小于等于N的正整数中有多少个X满足:X mod a[0] = b[0], X mod a[1] = b[1], X mod a[2] = b[2], …, X mod a[i] = b[i], … (0原创 2016-09-02 23:48:42 · 527 阅读 · 0 评论 -
HDU 3579 Hello Kiki【CRT(互质+不互质)统一】
Hello Kiki Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Description One day I was shopping in the supermarket. There was a cashier counting coins seriously when a原创 2016-09-03 00:54:20 · 391 阅读 · 0 评论