Difference between "|", "||", "or" in C++

Правка en1, от rhezo, 2016-06-27 14:33:26

I was solving this problem. I have a function go, which returns a boolean true or false. When I replace "|" with "||", I get AC, otherwise I get TLE on test 6. I get AC with "||" and "or", but TLE with "|". Can anyone tell me the difference between the three?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский rhezo 2016-06-27 14:33:26 350 Initial revision (published)