티스토리 뷰

알고리즘 문제/implementation

892B Wrath

gaelim 2017. 11. 18. 21:31
반응형

Difficulty

4/10

i think this problem is very good.....i couldn't solve this problem during the contest.

input n can be 100,000. so you should be aware of complexity. 


we can start a search from last man and end it at first man.

source code:

https://github.com/ingyeoking13/algorithm/blob/master/cf/implementation/892B.c



반응형

'알고리즘 문제 > implementation' 카테고리의 다른 글

CF 1092 C Prefixes and Suffixes  (0) 2018.12.19
908B New Year and Buggy Bot  (0) 2017.12.30
879B: Table Tennis  (0) 2017.10.27
879A : Borya's Diagnosis  (0) 2017.10.27
codeground : 다트게임  (0) 2017.10.08