two solutions

don't use global variable in the oj