
------------数学------------
Leslie_Blog
这个作者很懒,什么都没留下…
展开
-
【第四届图灵杯A】谷神的赌博游戏
问题 A: 谷神的赌博游戏 时间限制: 1 Sec 内存限制: 16 MB 题目描述 NEUQ的谷神要和我赌一个游戏:谷神要求我随机在纸上写出整数集合{1,2,3,...,3n+1}(n是整数)的一个排列(即不重复的随机写出从1到3n+1的所有整数)。并且要求在我写的过程中,从我写的第一个数开始一直加到我正在写的数的总和不被3整除。如果我能写出来符合要求的一个排列,那么我就赢得原创 2017-06-13 19:45:25 · 575 阅读 · 0 评论 -
HDU-5538 House Building
Have you ever played the video game Minecraft? This game has been one of the world's most popular game in recent years. The world of Minecraft is made up of lots of 1×1×1 blocks in a 3D map. Blo原创 2017-06-13 20:47:36 · 394 阅读 · 0 评论 -
HDU-5533 Dancing stars on me
The sky was brushed clean by the wind and the stars were cold in a black sky. What a wonderful night. You observed that, sometimes the stars can form a regular polygon in the sky if we connect them pr...原创 2017-06-13 21:23:31 · 320 阅读 · 0 评论 -
SDUT-2444 正方形(JAVA*)
正方形Time Limit: 1000 ms Memory Limit: 65536 KiBSubmit Statistic DiscussProblem Description给出四个点,判断这四个点能否构成一个正方形。Input 输入的第一行包含一个整数T(T≤30)表示数据组数,每组数据只有一行,包括8个整数x1, y1, x2, y2,x3,y3,x4,y4(数据均在-1000,1000 ...原创 2018-03-26 21:40:31 · 1205 阅读 · 0 评论 -
SDUT-2562 相似三角形(JAVA*)
相似三角形Time Limit: 1000 ms Memory Limit: 65536 KiBSubmit StatisticProblem Description给出两个三角形的三条边,判断是否相似。Input多组数据,给出6正个整数,a1,b1,c1,a2,b2,c2,分别代表两个三角形。(边长小于100且无序)Output如果相似输出YES,如果不相似输出NO,如果三边组不成三角形也输出N...原创 2018-03-26 22:13:11 · 369 阅读 · 0 评论 -
求三角形面积(海伦公式)
已知三角形三边长为a,b,c;设p=(a+b+c)/2;那么S=(p*(p-a)*(p-b)*(p-c))原创 2018-04-12 21:18:00 · 2672 阅读 · 0 评论