当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

4367:The war of virtual world

题目描述
  The war of virtual world will fight again. In order to prepare better for the war, the federal headquarters decided to conduct a military exercise. Commander AC as Red while yayamao play the Blues!
  The rules of the exercise is very special. There are N different laser emission point(we ensure that does not exist any three points are collinear).First AC arbitrarily select two different laser emission points a, b and connect them, then yayamao select two different points from the n-2 laser emission points and connect them.
  AC has n(n-1)/2 kinds of options to select a, b. For the i-th selection, assume yayamao has Ki kinds of options to select c, d to make ab and cd intersect.
  In order to know the exercise is successful or not, the headquarters defines the value of exercise evaluation formula:

  Fib(0) = Fib(1) = 1
  Fib(n) = Fib(n-1)+Fib(n-2)
输入解释
There are multiple test cases(no more than 10).
For each case, the first line contains an integer n (n <= 200) indicating the number of the points.
Followed n line, each line two integer xi, yi.(-100,000<=xi,yi<=100,000)
输出解释
Output an integer v indicating the value mod 1,000,000,007.
输入样例
4
0 0
0 1
1 0
1 1
输出样例
4
来自杭电HDUOJ的附加信息
Author FZU
Recommend zhuyuanchen520

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-4367

最后修改于 2020-10-25T23:12:51+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
4000/2000MS(Java/Others) 65536/32768K(Java/Others)