
其他 暴力
文章平均质量分 84
Albert__s
一直奔跑总会有出头之日。
展开
-
CodeForces 304A Pythagorean Theorem II 【基础】【暴力】
Description:In mathematics, the Pythagorean theorem — is a relation in Euclidean geometry among the three sides of a right-angled triangle. In terms of areas, it states:In any right-angled triang原创 2017-01-23 23:31:13 · 684 阅读 · 0 评论 -
SPOJ AE00 Rectangles 【基础】【暴力】
Description:Byteman has a collection of N squares with side 1. How many different rectangles can he form using these squares?Two rectangles are considered different if none of them can be rotate原创 2017-01-23 23:40:17 · 961 阅读 · 0 评论 -
UVa 725 Division 【暴力入门】
题目链接:点击打开链接中文翻译见紫书182页一开始暴力想到了10个for循环,接着看了看书,5个就够了,写了会感觉好low啊。写完后有bug,debug时感觉好熟悉,突然想到了第二章的习题2-6,果断把5个for循环删掉,改为用一个for从1234到49385循环(abcde / fghij= N, N最小为2,只要循环到98765/2+1就行 )。这里判断数字是否重复用到了字符数组,原创 2017-02-21 22:16:51 · 945 阅读 · 0 评论 -
UVa 10976 Fractions Again?! 【暴力】【基础】
题目链接:点击打开链接公式挺好推的,注意一下枚举的范围即可详见紫书183页AC代码:#include #include #include #include #include using namespace std;int a[10005][5];int main(){ int k, ans, tem, i; while(~scanf("%d",&k)原创 2017-02-22 18:08:19 · 484 阅读 · 0 评论 -
1990 ICPC WF B Squares【暴力】
题目链接:UVa 201 SquaresDescription: A children’s board game consists of a square array of dots that contains lines connecting some of the pairs of adjacent dots. One part of the game requires that the原创 2017-06-02 22:45:18 · 556 阅读 · 0 评论 -
玲珑学院 1143 计算几何你瞎暴力【计算几何】【技巧暴力】
1143 - 计算几何你瞎暴力Time Limit:5s Memory Limit:256MByteSubmissions:1828Solved:365DESCRIPTION今天HHHH考完了期末考试,他在教学楼里闲逛,他看着教学楼里一间间的教室,于是开始思考:如果从一个坐标为 (x1,y1,z1)(x1,y1,z1)的教室走到(x2,y原创 2017-07-17 22:50:44 · 446 阅读 · 0 评论 -
SDNU 1147 Pythagoras's Revenge 【技巧暴力】
1147.Pythagoras's RevengeTime Limit: 1000 MS Memory Limit: 32768 KBTotal Submission(s): 4 Accepted Submission(s): 2DescriptionThe famous Pythagorean theorem state原创 2017-07-18 21:02:47 · 470 阅读 · 0 评论