
Equilateral triangle 
Time Limit: 1000ms, Special Time Limit:2500ms, Memory Limit:32768KB 
Total submit users: 68, Accepted users: 31 
Problem 10008 :
No special judgement

Problem description 
There is an infinite equilateral triangle gridding £¬ numbering vertices(crossing points) as shown in figure below.Some three vertices of them form an equilateral triangle,for example,{1,2,3},{7,9,18},etc.These equilateral triangles must satisfy that each edge of the equilateral triangle is a part of a line of the equilateral triangle gridding.Thus vertices{5 10 13} are not vertices of an equilateral triangle.
Your task is to point out whether three given vertices form an equilateral triangle.

Input 
Input is a sequence of lines, each line containing three integers:i,j,k , indicating numbers of 3 vertices. You may assume that 1>i,j,k<2^{31} .

Output 
For each line of input, output one line ¡°i j k are vertices of an equilateral triangle.¡± if vertices {i,j,k} form an equilateral triangle,otherwise, output one line ¡°i j k are not vertices of an equilateral triangle.¡±

Sample Input 
1 2 3
6 7 8
7 9 18
5 10 13 
Sample Output 
1 2 3 are vertices of an equilateral triangle.
6 7 8 are not vertices of an equilateral triangle.
7 9 18 are vertices of an equilateral triangle.
5 10 13 are not vertices of an equilateral triangle. 
Problem Source 
HNU Contest

Submit
Discuss
Judge Status
Problems
Ranklist

