1 Star 0 Fork 2

TonyLee/Algorithm

forked from wangjili/Algorithm 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Paint.java 287 Bytes
一键复制 编辑 原始数据 按行查看 历史
RosinaWang 提交于 2017-09-05 17:20 +08:00 . first commit
package nowCoderClass1.section13;
/**
* 涂色练习题,如果有n*m个格子,涂色,不能有公共边
* Created by Dell on 2017-06-05.
*/
public class Paint {
public int getMost(int n, int m) {
int a=n*m%2;
int b=n*m/2;
return a==0?b:b+1;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/TonyLee1024/Algorithm.git
git@gitee.com:TonyLee1024/Algorithm.git
TonyLee1024
Algorithm
Algorithm
master

搜索帮助