题意: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 }

 



相关文章:

  • 2021-05-30
  • 2021-10-26
  • 2021-10-16
  • 2021-07-27
  • 2021-10-28
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2021-08-02
  • 2021-08-10
  • 2022-01-01
  • 2021-07-05
  • 2022-01-11
  • 2021-12-02
相关资源
相似解决方案