题目链接:http://www.codeforces.com/problemset/problem/50/A
题意:一个NxM的举行中最多能放多少个1x2的矩形。C++代码:#includeusing namespace std;int main(){ int n, m; cin >> n >> m; cout << (n * m) / 2 << endl; return 0;}
本文共 286 字,大约阅读时间需要 1 分钟。
题目链接:http://www.codeforces.com/problemset/problem/50/A
题意:一个NxM的举行中最多能放多少个1x2的矩形。C++代码:#includeusing namespace std;int main(){ int n, m; cin >> n >> m; cout << (n * m) / 2 << endl; return 0;}
转载于:https://www.cnblogs.com/moonlightpoet/p/5688529.html