当前位置:网站首页>Three body attack (three-dimensional split plus two points)
Three body attack (three-dimensional split plus two points)
2022-06-28 08:35:00 【Angeliaaa】
Title Description
The triad will attack the earth . To defend against attack , The earth people sent A × B × C warship , Line up in space A layer B That's ok C The cube of columns . among , The first i Layer j Xing di k The ships of the line ( It's a warship (i, j, k)) The life value of is d(i, j, k).
The triad will launch a war against the earth m round “ Cube attack ”, Each attack deals the same damage to all warships in a cube . In particular , The first t Round attack 7 Parameters lat, rat, lbt, rbt, lct, rct, ht describe ;
All satisfied i ∈ [lat, rat],j ∈ [lbt, rbt],k ∈ [lct, rct] The warships of (i, j, k) Will receive ht The damage of . If a warship's total cumulative damage exceeds its defense , Then this warship will explode .
Earth Commander wants you to tell him , After which attack did the first warship explode .
Input
The first line includes 4 A positive integer A, B, C, m;
The second line contains A × B × C It's an integer , Among them the first ((i − 1)×B + (j − 1)) × C + (k − 1)+1 The number is d(i, j, k);
The first 3 To the first m + 2 In line , The first (t − 2) Line inclusion 7 A positive integer lat, rat, lbt, rbt, lct, rct, ht.
A × B × C ≤ 10^6, m ≤ 10^6, 0 ≤ d(i, j, k), ht ≤ 10^9.
Output
The warship that outputs the first explosion exploded after which round of attack . There must be such a warship .
The sample input
2 2 2 3
1 1 1 1 1 1 1 1
1 2 1 2 1 1 1
1 1 1 2 1 2 1
1 1 1 1 1 1 2
Sample output
2
https://www.cnblogs.com/scx2015noip-as-php/p/2018_10_18.html( Reprint the boss's )
边栏推荐
- AWS builds a virtual infrastructure including servers and networks (2)
- The micro kernel zephyr is supported by many manufacturers!
- RAC enable archive log
- Set<String>
- Why are function templates not partial specialization?
- Quelle est la largeur de bande du serveur de bavardage sonore pour des centaines de millions de personnes en même temps?
- Love analysis released the 2022 love analysis · it operation and maintenance manufacturer panorama report, and an Chao cloud was strongly selected!
- [learning notes] matroid
- In flood fighting and disaster relief, the city donated 100000 yuan of love materials to help Yingde
- 隐私计算FATE-----离线预测
猜你喜欢

Kali installation configuration

Large current and frequency range that can be measured by Rogowski coil

Reverse mapping of anonymous pages

叠加阶梯图和线图及合并线图和针状图

Idea related issues
![[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service](/img/19/296f124becb87461accf8b73b0a8bc.png)
[.Net6] GRP server and client development cases, as well as the access efficiency duel between the minimum API service, GRP service and traditional webapi service

Two tips for block level elements

Build an integrated kubernetes in Fedora

PMP从报考到拿证基本操作,了解PMP必看篇

Solution: selenium common. exceptions. WebDriverException: Message: ‘chromedriver‘ execu
随机推荐
[untitled]
Almost Union-Find(带权并查集)
How to choose an account opening broker? Is it safe to open an account online?
CloudCompare&PCL 点云SVD分解
Oracle RAC -- understanding of VIP
Preparation for Oracle 11g RAC deployment on centos7
TCP
Modifying the SSH default port when installing Oracle RAC makes CRS unable to install
The RAC cannot connect to the database normally after modifying the scan IP. The ora-12514 problem is handled
duilib 入门基础十二 样式类
The 6th smart home Asia 2022 will be held in Shanghai in October
AI chief architect 8-aica-gao Xiang, in-depth understanding and practice of propeller 2.0
RAC enable archive log
Discussion on the application of GIS 3D system in mining industry
[go ~ 0 to 1] the third day June 27 slice, map and function
The micro kernel zephyr is supported by many manufacturers!
电子元器件销售ERP管理系统哪个比较好?
个人究竟如何开户炒股?在线开户安全么?
找合适的PMP机构只需2步搞定,一查二问
A - Bi-shoe and Phi-shoe