排序:
默认
按更新时间
按访问量

51nod 1079 中国剩余定理 拓展欧几里得

1079 中国剩余定理 基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注一个正整数K,给出K Mod 一些质数的结果,求符合条件的最小的K。例如,K % 2 = 1, K % 3 = 2, K % 5 = 3。符合条件的最小的K = 23。Input第1行:...

2018-06-03 17:08:34

阅读数:20

评论数:0

2018ACM浙江省赛 ZOJ 4029 Now Loading!!!(二分)

Now Loading!!!Time Limit: 1 Second      Memory Limit: 131072 KBDreamGrid has  integers . DreamGrid also has  queries, and each time he would like to ...

2018-04-30 17:15:17

阅读数:414

评论数:0

4488: [Jsoi2015]最大公约数

4488: [Jsoi2015]最大公约数Time Limit: 10 Sec  Memory Limit: 256 MBSubmit: 264  Solved: 152[Submit][Status][Discuss]Description给定一个长度为 N 的正整数序列Ai对于其任意一个连续的...

2018-03-18 19:45:24

阅读数:101

评论数:0

BZOJ3505数三角形(枚举+gcd)

3505: [Cqoi2014]数三角形Time Limit: 10 Sec  Memory Limit: 128 MBSubmit: 1951  Solved: 1195[Submit][Status][Discuss]Description给定一个nxm的网格,请计算三点都在格点上的三角形共有...

2018-03-18 10:08:59

阅读数:67

评论数:0

E. Stack Sorting Codeforces(全排列与栈辅助排序)

Educational Codeforces Round 35 (Rated for Div. 2) 题目链接:http://codeforces.com/contest/911/problem/E E. Stack Sorting time limit per test ...

2018-01-08 19:09:35

阅读数:255

评论数:0

欧拉函数 codeforces 776E - The Holmes Children

The Holmes children are fighting over who amongst them is the cleverest. Mycroft asked Sherlock and Eurus to find value of f(n), where f(1) = 1 and ...

2017-11-01 10:59:37

阅读数:508

评论数:0

UVa10375(唯一分解定理)

The binomial coefficient C(m, n) is defined as C(m, n) = m! (m − n)! n! Given four natural numbers p, q, r, and s, compute the the result of dividing...

2017-10-26 17:16:49

阅读数:438

评论数:0

UVa12169(拓展欧几里得)

Once upon a time, there was an NWERC judge with a tendency to create slightly too hard problems. As a result, his problems were never solved. As you ...

2017-10-26 13:15:41

阅读数:434

评论数:0

HDU 6129 just do it(组合数奇偶性)

Just do it Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 524288/524288 K (Java/Others) Total Submission(s): 1411 Accepted Submission(s):...

2017-10-08 18:32:39

阅读数:409

评论数:0

HDU 4474 同余模定理+BFS

Yet Another Multiple Problem Time Limit: 40000/20000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 6255 Accep...

2017-10-04 21:12:57

阅读数:592

评论数:0

RMRC2016问题 B: Election(概率计算)

问题 B: Election 时间限制: 1 Sec 内存限制: 128 MB 提交: 83 解决: 12 [提交][状态][讨论版] 题目描述 After all the fundraising, campaigning and debating, the election day has...

2017-09-03 17:17:57

阅读数:865

评论数:0

Codeforces 785D - Anton and School - 2(范德蒙恒等式+逆元)

D. Anton and School - 2 time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output As you probably...

2017-08-25 21:10:54

阅读数:649

评论数:0

poj3281 Dining 网络流匹配问题(拆点建图+Edmond-Karp算法)

Dining Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 19183 Accepted: 8556 Description Cows are such finicky eaters. Each cow has a pr...

2017-08-23 17:59:11

阅读数:876

评论数:0

poj2947 Widget Factory (高斯消元解模线性方程组)

Widget Factory Time Limit: 7000MS Memory Limit: 65536K Total Submissions: 6261 Accepted: 2207 Description The widget factory produces several diff...

2017-08-23 10:48:33

阅读数:482

评论数:0

275. To xor or not to xor(高斯消元求最大亦或值)

275. To xor or not to xor time limit per test: 0.25 sec. memory limit per test: 65536 KB input: standard output: standard The sequence of non-neg...

2017-08-18 11:32:23

阅读数:471

评论数:0

ACM高斯消元法 亦或方程组求秩 (HDU5833 Zhu and 772002)

#include <stdio.h> #include <string.h> #include <iostream> #include <algorithm> #define set(a,i) memset(a,i,siz...

2017-08-16 21:20:04

阅读数:830

评论数:0

ACM暑假训练 中石油oj 3737: 礼物(矩阵快速幂)

矩阵快速幂解决递推题 3737: 礼物 时间限制: 5 Sec 内存限制:512 MB 提交: 46 解决: 12 [提交][状态][讨论版] 题目描述 热情好客的小猴请森林中的朋友们吃饭,他的朋友被编号为 1∼N,每个到来的朋友都会带给他一些礼物:香蕉。其中,第一个朋友会带给他1个香蕉...

2017-08-02 10:59:46

阅读数:379

评论数:0

第四届图灵杯A题 谷神的赌博游戏

问题 A: 谷神的赌博游戏 时间限制: 1 Sec  内存限制: 16 MB 提交: 412  解决: 110 [提交][状态][讨论版] 题目描述   NEUQ的谷神要和我赌一个游戏:谷神要求我随机在纸上写出整数集合{1,2,3,...,3n+1}(n是整数)的一个排列...

2017-06-13 13:07:26

阅读数:487

评论数:2

SDUT 3895 fireworks 山东第八届ACM大赛C题(组合数学(杨辉三角)+逆元)

题目地址:点击打开链接fireworksTime Limit: 1000MS Memory Limit: 65536KBSubmit Statistic DiscussProblem DescriptionHmz likes to play fireworks, especially when t...

2017-06-09 18:44:14

阅读数:292

评论数:0

SDUT 3896 HEX 山东第八届ACM大赛D题(组合数学)

题目提交地址:http://www.sdutacm.org/onlinejudge2/index.php/Home/Index/problemdetail/pid/3896.html HEX Time Limit: 4000MS Memory Limit: 131072KB Submit ...

2017-06-08 17:50:36

阅读数:350

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭