麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 學院 > 開發設計 > 正文

Codeforces--Domino piling

2019-11-06 08:50:58
字體:
來源:轉載
供稿:網友

Domino piling time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output

You are given a rectangular board of M?×?N squares. Also you are given an unlimited number of standard domino pieces of 2?×?1 squares. You are allowed to rotate the pieces. You are asked to place as many dominoes as possible on the board so as to meet the following conditions:

Each domino completely covers two squares.

No two dominoes overlap.

Each domino lies entirely inside the board. It is allowed to touch the edges of the board.

Find the maximum number of dominoes, which can be placed under these restrictions.

Input In a single line you are given two integers M and N — board sizes in squares (1?≤?M?≤?N?≤?16).

Output Output one number — the maximal number of dominoes, which can be placed.

Examples input 2 4 output 4 input 3 3 output 4

#include<stdio.h>int main(){ int m,n; scanf("%d%d",&m,&n); int num=m*n;
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 久久久久久久91 | 国产精品久久久久久久久久 | 精品久久999| 最新在线中文字幕 | 性爱在线免费视频 | 久草免费新视频 | 日韩黄色av| 久久久久国 | 黄色大片免费看 | 国内精品久久久久久久久久 | 国产1区在线| 久草手机在线视频 | 色毛片 | 午夜网站视频 | 国产女同疯狂激烈互摸 | 九九热欧美 | 国产成人综合在线观看 | 国产xxxx免费 | 午夜精品福利视频 | 日本中文字幕电影在线观看 | av资源在线天堂 | av电影在线免费观看 | 99sesese| 成人福利电影在线观看 | 中文字幕在线免费观看电影 | 久久精品美乳 | 精品99在线视频 | 久久精品久 | 日韩在线欧美在线 | 黄色特级| 久久精品视频网址 | 国产91av视频 | 亚洲天堂ww | 国产日产精品一区四区介绍 | 中文字幕网站在线 | 欧美视频黄色 | 国产精品v片在线观看不卡 成人一区二区三区在线 | 91九色丨porny丨国产jk | 久久精品视频首页 | 国产成人精品区一区二区不卡 | 人成免费a级毛片 |