
数学题
风吼迷林
大神大神大神
展开
-
codeforces - 597A
A. Divisibility time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Find the number of k-divisible numbers on the segment [a, b]. In other word原创 2016-07-22 09:33:50 · 303 阅读 · 0 评论 -
zzulioj 1899(985的最大和难题)
985的最大和难题Time Limit: 1 Sec Memory Limit: 128 MB Submit: 285 Solved: 29SubmitStatusWeb Board Description985有2 * n - 1个整数,他每次可以将其中n个数变号,操作次数不限,问他可以得到的最大和。Input第一行输入一个整数t,代表有t组测试数据。 每组数据占两行,第一行输入一个整数原创 2016-08-09 09:26:33 · 314 阅读 · 0 评论 -
zzulioj 1902 (985的因子对难题)
985的因子对难题Time Limit: 2 Sec Memory Limit: 128 MB Submit: 138 Solved: 35SubmitStatusWeb Board Description985有n个正整数,他想知道存在多少个不同的因子对(a[i], a[j])使得 1 <= i, j <= n && i != j && a[j] % a[i] == 0,其中i和j是元素原创 2016-08-09 10:48:27 · 280 阅读 · 0 评论 -
CodeForces 337C Quiz(快速幂)
Quiz Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatusPracticeCodeForces 337C Description Manao is taking part in a quiz. The quiz consists of n consecutive原创 2016-10-25 14:00:11 · 368 阅读 · 0 评论 -
Codeforces Round #277 (Div. 2) B
OR in Matrix Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u SubmitStatus Description Let’s define logical OR as an operation on two logical values (i. e. values that原创 2016-10-02 23:05:12 · 278 阅读 · 0 评论 -
1402 最大值(模拟)
1402 最大值 题目来源: TopCoder 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 收藏 关注 一个N长的数组s,满足以下性质: 1)每个元素都是非负的整数,且s[1]=0; 2)任意两个相邻元素差值的绝对值不大于1,即| s[i]-s[i+1] |<=1; 3)对于部分特殊点xi,要求s[xi]<=ti(这样的特殊点一共M个); 问在原创 2017-03-09 17:38:44 · 357 阅读 · 0 评论