随笔分类 -  数论

摘要:题目链接: "http://acm.hdu.edu.cn/showproblem.php?pid=5976" Detachment Time Limit: 4000/2000 MS (Java/Others)Memory Limit: 65536/65536 K (Java/Others) 问题描述 阅读全文
posted @ 2016-11-07 11:20 fenicnn 阅读(158) 评论(0) 推荐(0)
摘要:题目链接: "http://codeforces.com/problemset/problem/272/D" D. Dima and Two Sequences time limit per test2 secondsmemory limit per test256 megabytes 问题描述 L 阅读全文
posted @ 2016-11-01 02:51 fenicnn 阅读(215) 评论(0) 推荐(0)
摘要:题目链接: "http://acm.hdu.edu.cn/showproblem.php?pid=5446" Unknown Treasure 问题描述 On the way to the next secret treasure hiding place, the mathematician di 阅读全文
posted @ 2016-07-29 23:13 fenicnn 阅读(190) 评论(0) 推荐(0)
摘要:题目链接: 题目 "D. Remainders Game" time limit per test 1 second memory limit per test 256 megabytes 问题描述 Today Pari and Arya are playing a game called Rema 阅读全文
posted @ 2016-07-10 01:39 fenicnn 阅读(161) 评论(0) 推荐(0)
摘要:题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5597 题意: http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=658&pid=1003 题解: f0(1)=2; 阅读全文
posted @ 2016-05-12 23:02 fenicnn 阅读(185) 评论(0) 推荐(0)
摘要:题目链接: http://codeforces.com/problemset/problem/57/C 题意: 给你一个数n,表示有n个数的序列,每个数范围为[1,n],叫你求所有非降和非升序列的个数。 题解: 由于对称性,我们只要求非降序的个数就可以了(n个数全部相等的情况既属于非升也属于非降) 阅读全文
posted @ 2016-05-05 01:18 fenicnn 阅读(398) 评论(0) 推荐(0)
摘要:题目链接: hdu: http://acm.hdu.edu.cn/showproblem.php?pid=5167 题意: 给你一个x,判断x能不能由斐波那契数列中的数相乘得到(一个数可以重复使用) 题解: 1、筛法 首先,小于10^9的斐波那契数很少,就42个(不包括0,1),对于给定的x能同时成 阅读全文
posted @ 2016-04-28 10:35 fenicnn 阅读(410) 评论(0) 推荐(0)
摘要:题目链接: hdu:http://acm.hdu.edu.cn/showproblem.php?pid=5666 bc(中文):http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=688&pid=1002 题解: 首 阅读全文
posted @ 2016-04-17 22:55 fenicnn 阅读(334) 评论(0) 推荐(0)
摘要:1、java: 阅读全文
posted @ 2016-04-17 11:22 fenicnn 阅读(264) 评论(0) 推荐(0)
摘要:题目链接: hdu:http://acm.hdu.edu.cn/showproblem.php?pid=5651 bc:http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?cid=682&pid=1002 xiaoxin juju 阅读全文
posted @ 2016-03-27 23:15 fenicnn 阅读(280) 评论(0) 推荐(0)
摘要:hdu:http://acm.hdu.edu.cn/showproblem.php?pid=5391 bc: http://bestcoder.hdu.edu.cn/contests/contest_chineseproblem.php?cid=616&pid=1001 题目是叫我们求(n-1)!% 阅读全文
posted @ 2016-03-19 15:41 fenicnn 阅读(215) 评论(0) 推荐(0)
摘要:题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5428 The Factor Accepts: 101 Submissions: 811 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 655 阅读全文
posted @ 2016-03-11 19:20 fenicnn 阅读(240) 评论(0) 推荐(0)
摘要:题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1121 Complete the Sequence Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Ot 阅读全文
posted @ 2016-03-06 23:55 fenicnn 阅读(498) 评论(0) 推荐(0)
摘要:题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1104 Remainder Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total S 阅读全文
posted @ 2016-03-06 12:15 fenicnn 阅读(159) 评论(0) 推荐(0)