博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
codeforces水题100道 第三题 Codeforces Beta Round #47 A. Domino piling (math)
阅读量:4656 次
发布时间:2019-06-09

本文共 286 字,大约阅读时间需要 1 分钟。

题目链接:http://www.codeforces.com/problemset/problem/50/A

题意:一个NxM的举行中最多能放多少个1x2的矩形。
C++代码:

#include 
using namespace std;int main(){ int n, m; cin >> n >> m; cout << (n * m) / 2 << endl; return 0;}
C++

 

转载于:https://www.cnblogs.com/moonlightpoet/p/5688529.html

你可能感兴趣的文章