随笔分类 - 数学欣赏
Math is beautiful!
摘要:灵感来源:https://www.nowcoder.com/practice/7492dceb022a4bbebb990695c107823e?tpId=122&&tqId=33723&rp=1&ru=/ta/exam-wangyi&qru=/ta/exam-wangyi/question-rank
阅读全文
摘要:勾股数组如下: (3,4,5) (5,12,13) (6,8,10) (7,24,25) (9,40,41)。
阅读全文
摘要:我写的一个固定的函数来嘞: 1,1,2,3,5,8,13,21,34,55,...... 斐波那契博弈(Fibonacci Nim Game)
阅读全文
摘要:https://vjudge.net/contest/317493#problem/I
阅读全文
摘要:____________________________我往前飞 飞过一片时间海 1. 关于同余式的约去法则: 给出一个正整数m和三个整数a, b和c,d=GCD(c, m),并且ac≡bc(mod m)。则a≡b(mod (m DIV d))。 2.________________________
阅读全文
摘要:1. 题目:https://vjudge.net/contest/316798#problem/P codes: 参考:https://blog.csdn.net/huangshuai147/article/details/51277645 2. 题目:https://vjudge.net/cont
阅读全文
摘要:_______________________我不知道将去何方,但我已经在路上。 (下取整!) Summary: codes: Reference: https://blog.csdn.net/u013008291/article/details/38359073
阅读全文
摘要:在初等数论中,威尔逊定理给出了判定一个自然数是否为素数的充分必要条件。即:当且仅当p为素数时:( p -1 )! ≡ -1 ( mod p ),但是由于阶乘是呈爆炸增长的,其结论对于实际操作意义不大。 Carmichaael number
阅读全文
摘要:#include using namespace std; int exgcd(int a,int b,int& x,int& y) { if(b==0) { x=1; y=0; return a; } int t=exgcd(b,a%b,x,y); int x0=x...
阅读全文
摘要:心怀虔诚,奋勇前进,fighting!!!!!! Problem Description: inclusively: 包括一切地;包含地 simultaneously: 同时 index number : 指数; 索引编号 if and only if: 当且仅当 Rough Translation
阅读全文
摘要:今天起床,清风徐来,迎接此题! 问题描述:切割一根钢条,不同的长度对应不同的售价,如何切割使得获得最大的利益。 Another decipition: 某公司购买钢条将其切割成锻钢条出售,切割过程本身没有支出,而钢条切割的长度不同价格不同,比如: 长度i 1 2 3 4 5 6 7 8 9 10 价
阅读全文
摘要:There are n products in the shop. The price of the ii-th product is aiai. The owner of the shop wants to equalize the prices of all products. However,
阅读全文
摘要:Polycarp knows that if the sum of the digits of a number is divisible by 33, then the number itself is divisible by 33. He assumes that the numbers, t
阅读全文
摘要:这道题目关于多边形的角度的一些性质的挖掘! 题目描述 某年某月某日,琪仔get到了一款十分精美的天花板图案的设计图纸。 图案的框架最初是一个正n边形,之后以它的n条边的中点为顶点构成一个新的正n变形。如此重复多次后,就能得到天花板图案的框架了。 不要问重复多少次,问就是无限重复。。。 给定n,求生成
阅读全文
浙公网安备 33010602011771号