cf50A(水题)
題意:m*n的地板最多能鋪多少2*1的地板磚,不能重復。。。
水題。。
上代碼。。。
1 #include <iostream> 2 #include <stdio.h> 3 using namespace std; 4 5 int main(void) 6 { 7 int m, n; 8 cin >> m >> n; 9 int ans=(m/2)*n+(m%2)*n/2; 10 cout << ans << endl; 11 return 0; 12 }?
轉載于:https://www.cnblogs.com/geloutingyu/p/5734085.html
總結
- 上一篇: Mac开发环境配置 就喜欢折腾
- 下一篇: ACM/ICPC 之 DP解有规律的最短