| |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
-> 人工智能 -> upc 2022/2/27 校赛b题 Boing -> 正文阅读 |
|
[人工智能]upc 2022/2/27 校赛b题 Boing |
Klee was recently working on a potentially more powerful new type of bomb. However, she was not familiar with the new technology, and the quality of the bombs was not to her satisfaction. Now, all the bombs Klee made form a square of size?nn, but due to the capacity of her bag, Klee can only take a few of the bombs, which means Klee can only choose a square of size?mm?and take away?kk?most powerful bombs among them. Since Klee is busy with studying how to improve the power of bomb, she asks you to help her calculate what is the minimum power among all the bombs she can take. Input The input file contains only one test case. The first line contains three integer?n,m,k(1≤m≤n≤103,1≤k≤m?m)n,m,k(1≤m≤n≤103,1≤k≤m?m), denoting the size of the whole square, the size which Klee can choose and the number of bombs Klee can take. The following?nn?lines, each line contains of?nn?integers, the integer on the?i+1thi+1th?row and?jthjth?column denotes?ai,j(1≤ai,j≤109)ai,j(1≤ai,j≤109). Output The first line contains one integer?ansans, representing the minimum power of the?kthkth?biggest power of the bomb Klee can get. Example input Copy 5 3 3 5 4 9 8 2 1 5 4 3 8 6 5 1 4 9 3 5 6 8 1 2 4 6 7 5 output Copy 5 Note In the sample, one possible way is that Klee can choose the square which left upper corner is located on the?1st1st?row and?1st1st?column and choose the bomb with power?9,6,59,6,5.
川哥的二维差分我还没看懂,不过用前缀和也能解决此题。 |
|
|
上一篇文章 下一篇文章 查看所有文章 |
|
开发:
C++知识库
Java知识库
JavaScript
Python
PHP知识库
人工智能
区块链
大数据
移动开发
嵌入式
开发工具
数据结构与算法
开发测试
游戏开发
网络协议
系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程 数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁 |
360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 | -2024/11/26 18:44:51- |
|
网站联系: qq:121756557 email:121756557@qq.com IT数码 |