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 }



我就是我,颜色不一样的烟火 --- geloutingyu
原文地址:https://www.cnblogs.com/geloutingyu/p/5734085.html