
简单数学
文章平均质量分 70
小坏蛋_千千
im0qianqian_站在回忆的河边看着摇晃的渡船终年无声地摆渡,它们就这样安静地画下黄昏画下清晨......
展开
-
POJ 1019:Number Sequence
Number SequenceTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 37876 Accepted: 10944DescriptionA single positive integer i is given. Write a program to原创 2016-07-25 21:33:14 · 532 阅读 · 0 评论 -
Codeforces 933 B. A Determined Cleanup(数学)
Description In order to put away old things and welcome a fresh new year, a thorough cleaning of the house is a must. Little Tommy finds an old polynomial and cleaned it up by taking it modul...原创 2018-02-16 11:23:17 · 714 阅读 · 0 评论 -
51nod 1836 战忽局的手段 (期望)
Description 众所周知,有一个神秘的组织——战忽局,在暗中保护着我们。在局中任职的官员都有着极强的忽悠技巧,不只能用预言,还能用往事忽悠人。如今某外星间谍已经获得了战忽局曾经参与的n次事件的资料,局座发现了这件事,于是决定再次用忽悠来保证战忽局的安全。局座将发表m次演讲,每一天他都会从n事件中等概率地挑选一件混淆众人,由于局座每天很忙,不能把之前将的事件都记录下来,因此他可能会重复选择原创 2017-11-02 19:05:23 · 323 阅读 · 0 评论 -
51nod 1350 斐波那契表示 (数学)
Description 每一个正整数都可以表示为若干个斐波那契数的和,一个整数可能存在多种不同的表示方法,例如:14 = 13 + 1 = 8 + 5 + 1,其中13 + 1是最短的表示(只用了2个斐波那契数)。定义F(n) = n的最短表示中的数字个数,F(14) = 2,F(100) = 3(100 = 3 + 8 + 89),F(16) = 2(16 = 8 + 8 = 13 + 3)。原创 2017-11-11 13:41:41 · 518 阅读 · 0 评论 -
HDU 6154 CaoHaha's staff (数学)
Description “You shall not pass!” After shouted out that,the Force Staff appered in CaoHaha’s hand. As we all know,the Force Staff is a staff with infinity power.If you can use it skillful,原创 2017-08-21 21:16:21 · 435 阅读 · 0 评论 -
HDU 6038 Function (数学)
Description You are given a permutation a from 0 to n−1 and a permutation b from 0 to m−1. Define that the domain of function f is the set of integers from 0 to n−1, and the range of it is the s原创 2017-07-26 14:11:26 · 1208 阅读 · 0 评论 -
POJ 1681 Painter's Problem (高斯消元)
Description There is a square wall which is made of n×n small square bricks. Some bricks are white while some bricks are yellow. Bob is a painter and he wants to paint all the bricks yellow. But ther原创 2017-08-02 20:41:41 · 522 阅读 · 0 评论 -
hiho一下 第157周 二进制小数 (二进制)
描述 给定一个十进制小数X,判断X的二进制表示是否是有限确定的。 例如0.5的二进制表示是0.1,0.75的二进制表示是0.11,0.3没有确定有限的二进制表示。 输入 第一行包含一个整数 T (1 ≤ T ≤ 10),表示测试数据的组数。 以下T行每行包含一个十进制小数 X (0 < X < 1)。 X一定是以”0.”开头,小数部分不超过100位。 输出 对于每原创 2017-07-02 10:12:30 · 703 阅读 · 0 评论 -
UVA Live 3704 Cellular Automaton (循环矩阵+快速幂)
Description A cellular automaton is a collection of cells on a grid of specified shape that evolves through a number of discrete time steps according to a set of rules that describe the new state of a原创 2017-06-03 19:53:37 · 613 阅读 · 0 评论 -
山东省第八届 ACM 省赛 quadratic equation (水、坑)
Problem Description With given integers a,b,c, you are asked to judge whether the following statement is true: “For any x, if a⋅x2+b⋅x2+c=0a⋅x^2+b⋅x^2+c=0 , then x is an integer.”Input The first l原创 2017-05-09 18:48:38 · 1067 阅读 · 0 评论 -
POJ 3101 Astronomy (数学)
Description There are n planets in the planetary system of star X. They orbit star X in circular orbits located in the same plane. Their tangent velocities are constant. Directions of orbiting of all原创 2017-04-20 20:40:23 · 966 阅读 · 0 评论 -
多校联合集训 G. 数字逻辑练习题 (普通计算)
题目描述 原码、反码、补码都是一样的,都是正数本身。 对于负数: 原码是符号位为 1,数值部分取绝对值的二进制。 反码是符号位为 1,其它位是原码取反。 补码是符号位为 1,其它位是原码取反,未位加 1。 输入一个 64bit 十进制整数,输出它的原码,反码,补码的 16 进制表示法 输入 有多组数据,每组数据一行,为一个 64bi原创 2017-05-01 21:25:05 · 693 阅读 · 0 评论 -
CCCC L3-013. 非常弹的球 (高中物理)
刚上高一的森森为了学好物理,买了一个“非常弹”的球。虽然说是非常弹的球,其实也就是一般的弹力球而已。森森玩了一会儿弹力球后突然想到,假如他在地上用力弹球,球最远能弹到多远去呢?他不太会,你能帮他解决吗?当然为了刚学习物理的森森,我们对环境做一些简化: 假设森森是一个质点,以森森为原点设立坐标轴,则森森位于(0, 0)点。 小球质量为w/100 千克(kg),重力加速度为9.8米/原创 2017-03-29 19:01:47 · 839 阅读 · 0 评论 -
HDU 4586:Play the Dice (数学)
Problem Description There is a dice with n sides, which are numbered from 1,2,…,n and have the equal possibility to show up when one rolls a dice. Each side has an integer ai on it. Now here is a gam原创 2016-11-25 10:12:50 · 517 阅读 · 0 评论 -
HDU 5907:Find
Find QTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others)Total Submission(s): 263 Accepted Submission(s): 148Problem DescriptionByteasar is addicte原创 2016-10-02 12:41:57 · 742 阅读 · 0 评论 -
计蒜客 25092 蒜头君的数轴
题目描述 今天蒜头君拿到了一个数轴,上边有 nnn 个点,但是蒜头君嫌这根数轴不够优美,想要通过加一些点让它变优美,所谓优美是指考虑相邻两个点的距离,最多只有一对点的距离与其它的不同。 蒜头君想知道,他最少需要加多少个点使这个数轴变优美。 输入格式 输入第一行为一个整数 n(1≤n≤105)n(1≤n≤105)n(1 \leq n \leq 10^...原创 2018-03-26 20:23:02 · 537 阅读 · 0 评论