当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

3737:Adaboost

题目描述
输入解释
There are no more than 10 test cases
For each case, the first line contains four integers C , N , M,S ( 1<= C <= 20 ,1 ≤ N,M <= 1000, 1<= S <= 50 ,M%2==0), indicating the number of queries , the number of rectangles, the number of images, the size of image .Noting :all the images are square and the same in size .
Then there are N lines. Each line has four integers x1 y1 x2 y2 (x1 <= x2, y1 <= y2, 0 <= x1, x2, y1, y2 < S) .They are the coordinates of the left-top and the right-bottom points of the rectangle . (y is row ,x is column)
Then there are M lines. Each lines has S*S integers. All integers from 0 to 255.
The ith Image is face when i is between 1 and M/2 , notface otherwise.
Then there are C lines. Each line has M integers. The ith integer is qi indicating to weight of ith image.( 1<= qi <= 2000000 )
输出解释
For each case, first print a line "Case #?:" where ? is the case number starting from 1. Then output C lines,You should output the C answers in the order of the sequences appearance.
输入样例
1 1 4 1
0 0 0 0
1 
4
2
3
1 1 1 1 

1 1 4 1
0 0 0 0
1 
2 
3 
4
1 1 1 1
输出样例
Case #1:
1
Case #2:
0

提示
The first sample f1 (x1) = 1, f1 (x2) = 4, f1 (x3) = 2, f1 (x4 ) = 3, so when θ ∈ (1, 2] , p = 1, or θ ∈ [3, 4), p = -1, ∈t = 1.
来自杭电HDUOJ的附加信息
Author Tsubasa
Recommend notonlysuccess

该题目是Virtual Judge题目,来自 杭电HDUOJ

题目来源 ACMDIY第二届群赛

源链接: HDU-3737

最后修改于 2020-10-25T23:06:32+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
6000/3000MS(Java/Others) 65536/65536K(Java/Others)