Entries from 2016-11-20 to 1 day

Codeforces Round #165 (Div. 1) B. Greenhouse Effect

codeforces.com Because Xi < Xi+1, for i in [1, N). The plants are given in order "from left to the right". So all of Xi values are not important in this problem. We can discard them. Now the problem is: Given N numbers S[N]. Given a number…

Install MacVim with Lua support

Vim

iI use MacVim on macOS as well as Emacs. In MacVim, I use a plugin called neocomplete: github.com It requires Lua support in Vim. So I reinstall MacVim with Homebrew: brew uninstall macvim brew install macvim --with-lua --with-override-sys…

Install Perl 5.20 on macOS

Codeforces support perl 5.20 and the perl version on macOS is 5.18. So I want to install perl 5.20 on macOS. There is a installation management toll for perl. It is Perlbrew. Just follow the homepage of the Perlbrew to install it: \curl -L…