Problem 3817 --Pty loves lines

3817: Pty loves lines

"
Time Limit $2$ 秒/Second(s) Memory Limit $128$ 兆字节/Megabyte(s)
提交总数 $0$ 正确数量 $0$
裁判形式 标准裁判/Standard Judge 我的状态 尚未尝试
难度 分类标签
You are required to put n straight lines on a plane, guaranteeing no three lines share a common point and no lines are coincident. They will form some intersections, please output all possible numbers of intersections.
The first line, an integer T(1 ≤ T ≤ 5) - the number of test cases. 

Following T lines, an positive integer n(1 ≤ n ≤ 700) - the number of lines.
Several lines, each line several numbers separated by a blank space - all possible numbers of intersections.
2
3
5
0 2 3
0 4 6 7 8 9 10

推荐代码 查看3817 所有题解 上传题解视频得图灵币

本题记录 用 户(点击查看用户) 运行号(点击购买题解) 时 间
算法最快[$ $ms]
内存最少[$ $KB]
第一AC
第一挑战

赛题来源/所属竞赛 N/A

竞赛编号 竞赛名称 竞赛时间 访问比赛