上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页
摘要: You are given positive integer number n. You should create such strictly increasing sequence of k positive numbers a1, a2, ..., ak, that their sum is 阅读全文
posted @ 2018-04-19 18:20 euzmin 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/94/K来源:牛客网 时间限制:C/C++ 5秒,其他语言10秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %lld 时间限制:C/C++ 5秒,其他语言10秒 空间 阅读全文
posted @ 2018-04-15 18:24 euzmin 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/94/H来源:牛客网 给出一个N*N的方阵A。构造方阵B,C: 使得A = B + C.其中 B为对称矩阵,C为反对称矩阵。 对于方阵S中的任意元素,若(S)ij = (S)ji,则称S为对称矩阵 对于方阵T中的任意元素 阅读全文
posted @ 2018-04-15 16:51 euzmin 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 入口:戳这里 阅读全文
posted @ 2018-04-12 17:15 euzmin 阅读(114) 评论(0) 推荐(0) 编辑
摘要: If we sum up every digit of a number and the result can be exactly divided by 10, we say this number is a good number. You are required to count the n 阅读全文
posted @ 2018-04-12 17:13 euzmin 阅读(237) 评论(0) 推荐(0) 编辑
摘要: This is a very easy problem, your task is just calculate el camino mas corto en un grafico, and just solo hay que cambiar un poco el algoritmo. If you 阅读全文
posted @ 2018-04-12 11:38 euzmin 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 题目描述:戳这里 解题思路:这题思路好想,n最多也就是20个不同的素数相乘,把所有可能的素数找到,然后枚举素数个数就行了。 n = p1^q1 + p2^q2 + p3 ^q3 + ... + pi ^qi; 约数个数也好找,有个约数个数定理: 对于一个大于1正整数n可以分解质因数: 则n的正约数的 阅读全文
posted @ 2018-04-03 08:57 euzmin 阅读(648) 评论(0) 推荐(0) 编辑
摘要: L3-015. 球队“食物链” 时间限制 1000 ms 内存限制 262144 kB 代码长度限制 8000 B 判题程序 Standard 作者 李文新(北京大学) 时间限制 1000 ms 时间限制 1000 ms 内存限制 262144 kB 内存限制 262144 kB 代码长度限制 80 阅读全文
posted @ 2018-03-25 09:59 euzmin 阅读(817) 评论(0) 推荐(0) 编辑
摘要: L3-002. 堆栈 时间限制 200 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 时间限制 200 ms 时间限制 200 ms 内存限制 65536 kB 内存限制 65536 kB 代码长度限制 8000 B 代码长度限制 8000 B 阅读全文
posted @ 2018-03-14 21:04 euzmin 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 一个正整数N的因子中可能存在若干连续的数字。例如630可以分解为3*5*6*7,其中5、6、7就是3个连续的数字。给定任一正整数N,要求编写程序求出最长连续因子的个数,并输出最小的连续因子序列。 输入格式: 输入在一行中给出一个正整数N(1<N<231)。 输出格式: 首先在第1行输出最长连续因子的 阅读全文
posted @ 2018-03-11 15:52 euzmin 阅读(1243) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 22 下一页