
数学题
数学思维题
team39
喜欢写注释
展开
-
除法的可除尽和小数循环
除法的可除尽:结论得自:https://blog.youkuaiyun.com/u014193247/article/details/249359011)对于两个互质的正整数(A,B),如果B含有除2,5以外的素因子,则A/B是不可以除尽的。2)对于两个不互质的正整数,gcd(A,B)约分成互质。小数循环:1)模拟除法,余数自乘10,再除以除数。2)判断循环节。只有商和余数同时出现在同一位置时,才是循环节。#...原创 2018-04-11 19:05:10 · 1838 阅读 · 0 评论 -
Convex
ConvexTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1497 Accepted Submission(s): 996Problem Description We have a special convex that all p...原创 2018-04-05 20:11:17 · 377 阅读 · 0 评论 -
C - Talented Chef
C - Talented ChefAs we all know, Coach Gao is a talented chef, because he is able to cook M dishes in the same time. Tonight he is going to have a hearty dinner with his girlfriend at his home. Of cou...原创 2018-04-24 17:54:06 · 195 阅读 · 0 评论 -
1505-咋暴力啊
1505-咋暴力啊 题目描述: 给出一行n个整数,第i个整数为A[i],求(A[i] - A[j])/ (i-j) 最大 2 <= n <= 10000,-10^9 <= A[i] <= 10^9 输入描述: 数据有多组(不超过100组) 每组第一行给出一个整数n 接下来一行n个整数之间用空格隔开 输出描述: 每组数据输出一个浮点数保...原创 2018-11-06 14:47:17 · 201 阅读 · 0 评论 -
Halloween treats
Halloween treats Every year there is the same problem at Halloween: Each neighbour is only willing to give a certain total number of sweets on that day, no matter how many children call on him, so i...原创 2018-12-03 21:42:23 · 255 阅读 · 0 评论