策略
i-Curve
优雅的运用技术
展开
-
OpenJ_Bailian - 2805:正方形 - csdn博客
OpenJ_Bailian - 2805:正方形 给出平面上一些点的坐标,统计由这些点可以组成多少个正方形。注意:正方形的边不一定平行于坐标轴。 Input 输入包括多组测试数据。每组的第一行是一个整数n (1 <= n <= 1000),表示平面上点的数目,接下来n行,每行包括两个整数,分别给出一个点在平面上的x坐标和y坐标。输入保证:平面上点的位置是两两不同的,而且坐标的...原创 2018-06-24 19:41:22 · 530 阅读 · 0 评论 -
A Magic Lamp HDU - 3183 -csdn博客
Kiki likes traveling. One day she finds a magic lamp, unfortunately the genie in the lamp is not so kind. Kiki must answer a question, and then the genie will realize one of her dreams. The questi...原创 2018-06-25 21:17:57 · 135 阅读 · 0 评论 -
A - Annoying Present codeforce1009c -csdn博客
Alice got an array of length nn as a birthday present once again! This is the third year in a row! And what is more disappointing, it is overwhelmengly boring, filled entirely with zeros. Bob decided...原创 2018-07-23 12:36:46 · 180 阅读 · 0 评论 -
B - Relatively Prime Graph -CodeForces - 1009D-csdn博客
Let’s call an undirected graph G=(V,E)relatively prime if and only if for each edge (v,u)∈E GCD(v,u)=1 (the greatest common divisor of v and u is 1). If there is no edge between some pair of vertices...原创 2018-07-23 13:23:21 · 130 阅读 · 0 评论 -
A - Buy and Resell HDU - 6438 2018-ccpc -csdn博客
The Power Cube is used as a stash of Exotic Power. There are n cities numbered 1,2,…,n where allowed to trade it. The trading price of the Power Cube in the i-th city is ai dollars per cube. Noswal is...原创 2018-09-03 21:10:43 · 258 阅读 · 0 评论