int/int向上取整装逼方法

int ans=a/b+(a%b!=0);

 

posted @ 2015-02-26 12:44  逍遥丶綦  阅读(424)  评论(0)    收藏  举报