Codeforces Round 886 (Div. 4).G. The Morning Star    https://codeforces.com/contest/1850/problem/G
Разница между en1 и en2, 49 символ(ов) изменены
My approach to the problem was to calculate the angel of the line connecting two points with respect to the positive x-axis and then calculate is it's divisable by 45 as each line of the compass is at 45 degrees difference each.↵

It shows wrong answers for the third case,i cannot figure out where the extras are coming from.↵
here is the code to the problem↵
 https://ideone.com/rPMEva

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский SHONKHO-NEEL 2023-09-25 13:55:59 49
en1 Английский SHONKHO-NEEL 2023-09-25 13:55:10 437 Initial revision (published)