其他 暴力
文章平均质量分 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 · 727 阅读 · 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 · 1009 阅读 · 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 · 976 阅读 · 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 · 512 阅读 · 0 评论 -
1990 ICPC WF B Squares【暴力】
题目链接:UVa 201 Squares Description: 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 · 595 阅读 · 0 评论 -
玲珑学院 1143 计算几何你瞎暴力【计算几何】【技巧暴力】
1143 - 计算几何你瞎暴力 Time Limit:5s Memory Limit:256MByte Submissions:1828Solved:365 DESCRIPTION 今天HHHH考完了期末考试,他在教学楼里闲逛,他看着教学楼里一间间的教室,于是开始思考: 如果从一个坐标为 (x1,y1,z1)(x1,y1,z1)的教室走到(x2,y原创 2017-07-17 22:50:44 · 482 阅读 · 0 评论 -
SDNU 1147 Pythagoras's Revenge 【技巧暴力】
1147.Pythagoras's Revenge Time Limit: 1000 MS Memory Limit: 32768 KB Total Submission(s): 4 Accepted Submission(s): 2 Description The famous Pythagorean theorem state原创 2017-07-18 21:02:47 · 499 阅读 · 0 评论
分享