pro3
2015-12-28 03:00:37 0 举报
PRO3是一款高端的智能手机,采用了最新的技术和设计。它拥有一块大屏幕,分辨率高达1080p,显示效果非常出色。同时,它还配备了一颗强大的处理器和大容量的内存,可以轻松运行各种应用程序和游戏。此外,PRO3还具有出色的相机功能,可以拍摄高清照片和视频。它的电池寿命也相当长,可以满足用户一整天的使用需求。总之,PRO3是一款功能强大、外观时尚、性能卓越的智能手机,值得拥有。
作者其他创作
大纲/内容
Yes
for i = 0; i N; i++
read in element x;element of vertexi[i] = x;position of vertex[i] = i;
Read in number of elements N
number of collisions reduce by 1;
Start
Error: exists a cycle in the graph
No
insert vertex[i] into min heap
number of collisions = -1
if element of vertex[i] 0
if number of collisions = 0
for i = 0; i number of vertices i++
ptemp = the closest collision element;ptemp = ptemp-next;(ptemp = last element of the current path)ptemp-next-element = element of current vertex[i];ptemp-next-position = i;(append the current vertex[i] to the end of the path)
yes
output = min of heap;delete min;
if output = -1
for every vertex that has vertex[i] as a collision
number of collisions of vertex[i] = (i - element of current vertex % N + N) % N
memory recycle
for j = 1; j number of collisions; j++
Halt
0 条评论
下一页