QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#296099 | #1418. Mountain Rescue Team | 17 | 20 | 51ms | 4252kb | C++20 | 5.8kb | 2024-01-02 09:06:11 | 2024-01-02 09:06:12 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#include "grader.h"
int cnt = 0;
bool g = false;
map<pair<int, int>, long long> m;
template<class F>
vector<int> smawk(int h, int w, F f){
auto dfs = [&](auto self, vector<int> &row, vector<int> &col) -> vector<int>{
int n = row.size();
if(n == 0) return {};
vector<int> ncol;
ncol.reserve(n);
for(int i:col){
long long mi = 3e9, ma = -3e9;
for(int j = 0; j < min(200, row[ncol.size()-1]); j++){
for(int k = 0; k < min(200, w-i-1); k++){
auto p = f(row[ncol.size()-1]-j, i+k, 1);
if(p < 0) continue;
if(m.count({p/10000, p%10000})) ma = max(ma, m[{p/10000, p%10000}]);
}
}
for(int j = 0; j < min(200, h-row[ncol.size()-1]-1); j++){
for(int k = 0; k < min(200, ncol.back()); k++){
auto p = f(row[ncol.size()-1]+j, ncol.back()-k, 1);
if(p < 0) continue;
if(m.count({p/10000, p%10000})) mi = min(mi, m[{p/10000, p%10000}]);
}
}
while(!ncol.empty() && mi > ma && f(row[ncol.size()-1], ncol.back()) > f(row[ncol.size()-1], i)){
ncol.pop_back();
}
if(ncol.size() < n) ncol.push_back(i);
}
vector<int> row_odd;
row_odd.reserve(n/2+1);
for(int i = 1; i < n; i+=2) row_odd.push_back(row[i]);
vector<int> ans = self(self, row_odd, ncol);
vector<int> res(n);
for(int i = 0; i < row_odd.size(); i++) res[i*2+1] = ans[i];
int j = 0;
for(int i = 0; i < n; i+=2){
int last = (i == n-1 ? ncol.back() : res[i+1]);
res[i] = ncol[j];
while(ncol[j] < last){
++j;
if(f(row[i], res[i]) > f(row[i], ncol[j])) res[i] = ncol[j];
}
}
return res;
};
vector<int> row(h), col(w);
iota(row.begin(), row.end(), 0);
iota(col.begin(), col.end(), 0);
return dfs(dfs, row, col);
}
void Rescue(int R, int C, int RS, int CS, int X){
int l1 = 0, r1 = RS;
while(r1-l1 > 1){
int mid = (l1+r1)/2;
int x = mid, y = CS;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
if(h < X) l1 = mid;
else r1 = mid;
}
/*
int l3 = r1, r3 = RS;
while(r3-l3 > 1){
int mid = (l3+r3)/2;
int x = mid, y = 1;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
if(h < X) l3 = mid;
else r3 = mid;
}
int l4 = r1, r4 = RS;
while(r4-l4 > 1){
int mid = (l4+r4)/2;
int x = mid, y = C;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
if(h < X) l4 = mid;
else r4 = mid;
}
*/
int l2 = RS, r2 = R+1;
while(r2-l2 > 1){
int mid = (l2+r2)/2;
int x = mid, y = CS;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
if(h < X) r2 = mid;
else l2 = mid;
}
int l7 = 0, r7 = CS;
while(r7-l7 > 1){
int mid = (l7+r7)/2;
int x = RS, y = mid;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
if(h < X) l7 = mid;
else r7 = mid;
}
int l8 = CS, r8 = C+1;
while(r8-l8 > 1){
int mid = (l8+r8)/2;
int x = RS, y = mid;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
if(h < X) r8 = mid;
else l8 = mid;
}
auto f1 = [&](int x, int y, bool t = false){
x = r1+x;
y = CS-y;
if(t) return x*10000+y;
if(g) return 0;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
return abs(h-X);
};
auto s1 = smawk(RS-r1+1, CS-r7+1, f1);
for(int i = 0; i < s1.size(); i++){
cerr << s1[i] << " ";
f1(i, s1[i]);
}
cerr << endl;
auto f2 = [&](int x, int y, bool t = false){
x = r1+x;
y = CS+y;
if(t) return x*10000+y;
if(g) return 0;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
return abs(h-X);
};
auto s2 = smawk(RS-r1+1, l8-CS+1, f2);
for(int i = 0; i < s2.size(); i++){
cerr << s2[i] << " ";
f2(i, s2[i]);
}
cerr << endl;
auto f3 = [&](int x, int y, bool t = false){
x = l2-x;
y = CS-y;
if(t) return x*10000+y;
if(g) return 0;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
return abs(h-X);
};
auto s3 = smawk(l2-RS+1, CS-r7+1, f3);
for(int i = 0; i < s3.size(); i++){
cerr << s3[i] << " ";
f3(i, s3[i]);
}
cerr << endl;
auto f4 = [&](int x, int y, bool t = false){
x = l2-x;
y = CS+y;
if(t) return x*10000+y;
if(g) return 0;
int h = m.count({x, y}) ? m[{x, y}] : Measure(x, y);
if(!m.count({x, y})){
if(h == X){
Pinpoint(x, y);
g = true;
}
m[{x, y}] = h;
}
return abs(h-X);
};
auto s4 = smawk(l2-RS+1, l8-CS+1, f4);
for(int i = 0; i < s4.size(); i++){
cerr << s4[i] << " ";
f4(i, s4[i]);
}
cerr << endl;
}
詳細信息
Subtask #1:
score: 20
Accepted
Test #1:
score: 20
Accepted
time: 0ms
memory: 3760kb
input:
1 1 1 1 1 1
output:
Accepted
Test #2:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 2 2 2 1 1 2 3 4
output:
Accepted
Test #3:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
2 2 2 2 2 1 2 3 4
output:
Accepted
Test #4:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
2 2 2 2 3 1 2 3 4
output:
Accepted
Test #5:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 2 2 2 4 1 2 3 4
output:
Accepted
Test #6:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
2 2 2 2 1 1 3 2 4
output:
Accepted
Test #7:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
2 2 2 2 3 1 3 2 4
output:
Accepted
Test #8:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
2 2 2 2 2 1 3 2 4
output:
Accepted
Test #9:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
2 2 2 2 4 1 3 2 4
output:
Accepted
Test #10:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2 2 2 1 2 2 1 4 3
output:
Accepted
Test #11:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
2 2 2 1 1 2 1 4 3
output:
Accepted
Test #12:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
2 2 2 1 4 2 1 4 3
output:
Accepted
Test #13:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
2 2 2 1 3 2 1 4 3
output:
Accepted
Test #14:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
2 2 1 2 2 2 4 1 3
output:
Accepted
Test #15:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
2 2 1 2 4 2 4 1 3
output:
Accepted
Test #16:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 2 1 2 1 2 4 1 3
output:
Accepted
Test #17:
score: 0
Accepted
time: 0ms
memory: 4036kb
input:
2 2 1 2 3 2 4 1 3
output:
Accepted
Test #18:
score: 0
Accepted
time: 0ms
memory: 4052kb
input:
2 2 2 1 3 3 1 4 2
output:
Accepted
Test #19:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
2 2 2 1 1 3 1 4 2
output:
Accepted
Test #20:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
2 2 2 1 4 3 1 4 2
output:
Accepted
Test #21:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
2 2 2 1 2 3 1 4 2
output:
Accepted
Test #22:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
2 2 1 2 3 3 4 1 2
output:
Accepted
Test #23:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
2 2 1 2 4 3 4 1 2
output:
Accepted
Test #24:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
2 2 1 2 1 3 4 1 2
output:
Accepted
Test #25:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
2 2 1 2 2 3 4 1 2
output:
Accepted
Test #26:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 2 1 1 4 4 2 3 1
output:
Accepted
Test #27:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
2 2 1 1 2 4 2 3 1
output:
Accepted
Test #28:
score: 0
Accepted
time: 0ms
memory: 4012kb
input:
2 2 1 1 3 4 2 3 1
output:
Accepted
Test #29:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
2 2 1 1 1 4 2 3 1
output:
Accepted
Test #30:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
2 2 1 1 4 4 3 2 1
output:
Accepted
Test #31:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
2 2 1 1 3 4 3 2 1
output:
Accepted
Test #32:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
2 2 1 1 2 4 3 2 1
output:
Accepted
Test #33:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2 2 1 1 1 4 3 2 1
output:
Accepted
Test #34:
score: 0
Accepted
time: 0ms
memory: 4044kb
input:
2 3 2 3 1 1 2 3 4 5 6
output:
Accepted
Test #35:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
2 3 2 3 4 1 2 4 3 5 6
output:
Accepted
Test #36:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 3 2 3 6 1 2 5 3 4 6
output:
Accepted
Test #37:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
2 3 2 2 5 1 3 2 4 6 5
output:
Accepted
Test #38:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
2 3 2 2 2 1 3 2 5 6 4
output:
Accepted
Test #39:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
2 3 2 3 5 1 3 4 2 5 6
output:
Accepted
Test #40:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
2 3 2 3 1 1 3 5 2 4 6
output:
Accepted
Test #41:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 3 2 2 2 1 4 2 3 6 5
output:
Accepted
Test #42:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
2 3 2 2 5 1 4 2 5 6 3
output:
Accepted
Test #43:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
2 3 2 2 5 1 4 3 2 6 5
output:
Accepted
Test #44:
score: 0
Accepted
time: 0ms
memory: 4000kb
input:
2 3 2 2 1 1 5 2 3 6 4
output:
Accepted
Test #45:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
2 3 2 2 2 1 5 2 4 6 3
output:
Accepted
Test #46:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
2 3 2 2 2 1 5 3 2 6 4
output:
Accepted
Test #47:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
2 3 2 2 6 2 3 1 4 6 5
output:
Accepted
Test #48:
score: 0
Accepted
time: 0ms
memory: 3740kb
input:
2 3 2 2 4 2 3 1 5 6 4
output:
Accepted
Test #49:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
2 3 2 2 6 2 4 1 3 6 5
output:
Accepted
Test #50:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
2 3 2 2 4 2 4 1 5 6 3
output:
Accepted
Test #51:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
2 3 1 3 1 2 4 6 1 3 5
output:
Accepted
Test #52:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
2 3 2 2 3 2 5 1 3 6 4
output:
Accepted
Test #53:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
2 3 2 2 4 2 5 1 4 6 3
output:
Accepted
Test #54:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2 3 1 3 2 2 5 6 1 3 4
output:
Accepted
Test #55:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
2 3 1 2 6 2 6 4 1 5 3
output:
Accepted
Test #56:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
2 3 1 2 3 2 6 5 1 4 3
output:
Accepted
Test #57:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
2 3 2 1 3 3 2 1 6 5 4
output:
Accepted
Test #58:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
2 3 2 2 1 3 4 1 5 6 2
output:
Accepted
Test #59:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
2 3 1 3 1 3 4 6 1 2 5
output:
Accepted
Test #60:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
2 3 2 2 4 3 5 1 4 6 2
output:
Accepted
Test #61:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
2 3 1 3 4 3 5 6 1 2 4
output:
Accepted
Test #62:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
2 3 1 2 2 3 6 4 1 5 2
output:
Accepted
Test #63:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
2 3 1 2 4 3 6 4 2 5 1
output:
Accepted
Test #64:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
2 3 1 2 5 3 6 5 1 4 2
output:
Accepted
Test #65:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
2 3 1 2 6 3 6 5 2 4 1
output:
Accepted
Test #66:
score: 0
Accepted
time: 0ms
memory: 4040kb
input:
2 3 2 1 1 4 2 1 6 5 3
output:
Accepted
Test #67:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
2 3 2 1 4 4 3 1 6 5 2
output:
Accepted
Test #68:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
2 3 1 3 1 4 5 6 1 2 3
output:
Accepted
Test #69:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
2 3 1 2 6 4 6 2 3 5 1
output:
Accepted
Test #70:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
2 3 1 2 5 4 6 3 1 5 2
output:
Accepted
Test #71:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
2 3 1 2 1 4 6 3 2 5 1
output:
Accepted
Test #72:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 3 1 2 2 4 6 5 1 3 2
output:
Accepted
Test #73:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
2 3 1 2 2 4 6 5 2 3 1
output:
Accepted
Test #74:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
2 3 2 1 3 5 2 1 6 4 3
output:
Accepted
Test #75:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
2 3 2 1 1 5 3 1 6 4 2
output:
Accepted
Test #76:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
2 3 1 2 2 5 6 2 3 4 1
output:
Accepted
Test #77:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
2 3 1 2 3 5 6 3 1 4 2
output:
Accepted
Test #78:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
2 3 1 2 1 5 6 3 2 4 1
output:
Accepted
Test #79:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
2 3 1 2 3 5 6 4 1 3 2
output:
Accepted
Test #80:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
2 3 1 2 1 5 6 4 2 3 1
output:
Accepted
Test #81:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
2 3 1 1 5 6 4 2 5 3 1
output:
Accepted
Test #82:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
2 3 1 1 2 6 4 3 5 2 1
output:
Accepted
Test #83:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
2 3 1 1 6 6 5 2 4 3 1
output:
Accepted
Test #84:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
2 3 1 1 3 6 5 3 4 2 1
output:
Accepted
Test #85:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
2 3 1 1 1 6 5 4 3 2 1
output:
Accepted
Test #86:
score: 0
Accepted
time: 0ms
memory: 4004kb
input:
1 3 1 3 1 1 2 3
output:
Accepted
Test #87:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
1 3 1 3 2 1 2 3
output:
Accepted
Test #88:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
1 3 1 3 3 1 2 3
output:
Accepted
Test #89:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
1 3 1 2 1 1 3 2
output:
Accepted
Test #90:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
1 3 1 2 3 1 3 2
output:
Accepted
Test #91:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
1 3 1 2 2 1 3 2
output:
Accepted
Test #92:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
1 3 1 2 2 2 3 1
output:
Accepted
Test #93:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
1 3 1 2 3 2 3 1
output:
Accepted
Test #94:
score: 0
Accepted
time: 0ms
memory: 4048kb
input:
1 3 1 2 1 2 3 1
output:
Accepted
Test #95:
score: 0
Accepted
time: 0ms
memory: 4048kb
input:
1 3 1 1 3 3 2 1
output:
Accepted
Test #96:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
1 3 1 1 2 3 2 1
output:
Accepted
Test #97:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
1 3 1 1 1 3 2 1
output:
Accepted
Test #98:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
50 50 25 25 951985666 44544131 91526867 92591638 92602827 92850682 94092196 94130437 94362739 95149431 95201023 95299737 95530146 95703930 95830638 96161652 96177425 96283355 96288537 105014073 105460298 105598741 105699224 106604830 107427962 173165535 108162651 103558891 103356567 101280031 534453...
output:
Accepted
Test #99:
score: 0
Accepted
time: 1ms
memory: 3872kb
input:
50 50 30 12 239615691 198970964 199588589 199827654 200750902 219606923 219768101 222958140 223147594 223617302 223840190 224107231 245397142 222507248 222238595 222148187 221502142 221355250 219019842 218910785 218657961 218456225 217727973 216183279 215567159 215528232 214995079 214744415 21399096...
output:
Accepted
Test #100:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
50 50 41 13 21803182 21803182 22640351 22822628 22842035 22894975 23150927 23421190 23742395 23950017 24530562 25184421 25554044 45850484 25366183 18819607 18078058 17557430 17211437 15920791 15757714 15518704 14686158 14175620 13414990 10725176 10590825 10305600 10052365 9972543 9859843 7873899 785...
output:
Accepted
Test #101:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
50 50 20 8 155056 574571250 574961349 575153304 575306256 575577263 576237809 582465605 639397201 604785755 604146421 604142642 603393114 594955832 594879019 594155040 593760771 593512097 592047416 591879184 572604250 571653755 571388761 571051562 568870211 568487436 567614176 559687456 533016609 51...
output:
Accepted
Test #102:
score: 0
Accepted
time: 1ms
memory: 4036kb
input:
50 50 45 25 999935938 7609752 7625163 7631120 7878829 7951071 8115401 8131117 8497608 9039215 9224294 9545277 9732654 9998969 10078344 10290169 10828976 10938478 11412418 11585381 11963084 13205216 14002190 14052095 14534900 34083989 14250584 13979860 13554720 13449661 8746380 7361264 6164259 577670...
output:
Accepted
Test #103:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
50 50 31 38 999951647 872078 18973042 43219086 63568679 88731838 112115467 131240645 154128740 154176986 154266884 154365830 154417339 154883906 155740428 156315677 156333038 156737527 161178571 162439790 162741773 163220742 163239731 164028924 164407541 164780430 164955926 165024878 165659528 16624...
output:
Accepted
Test #104:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
50 50 7 44 64599154 21642435 38271797 112724551 144785354 159618984 191818396 231314431 300812849 329090530 370154405 403175303 426954055 452992650 463720673 509222750 542006366 566038003 594205567 597363505 623893190 656051812 678631090 689778812 715870784 750079406 755618380 788154928 803575753 81...
output:
Accepted
Test #105:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
50 50 41 22 172222921 7382853 7503025 7610120 7789954 7836682 8853403 8892346 9096363 9436411 9688423 10032917 10184925 10366779 11027720 11129919 11529605 12148261 12306474 12644449 13111403 13652119 41353415 15004614 14239747 14050527 13827966 13690870 7064271 6198168 6063250 6005901 5456624 54186...
output:
Accepted
Test #106:
score: 0
Accepted
time: 1ms
memory: 4084kb
input:
50 50 31 2 630623201 361829280 418097118 386181026 385682843 385592387 382603632 382171803 377375746 377251507 377013308 376948433 374017779 373782784 373526744 373467935 373337812 373034238 372709329 372218110 372104991 371882340 371479168 371194683 370939760 370846939 370736406 370524379 370089327...
output:
Accepted
Test #107:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
50 50 27 19 945960322 107983758 108369608 108906082 119505890 120782483 121591595 121804196 122041643 122060711 122411601 122449151 122468080 123218730 134130675 134994241 135156033 135156974 135399433 164900365 136678432 136441239 135788663 134927943 126645805 126479405 125562085 125092136 12490003...
output:
Accepted
Test #108:
score: 0
Accepted
time: 2ms
memory: 3796kb
input:
50 50 1 1 74151489 999609053 999427876 998174897 996657364 995097130 991506340 986553050 981950004 978453000 969110126 961168236 955958045 947768897 935538728 929010432 920319907 905125983 892462966 871901666 858585571 841874604 825222409 813681977 800074444 782572018 763530096 740689357 720553313 6...
output:
Accepted
Test #109:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
50 50 1 1 817076 999442754 998385728 996598818 995234042 994701346 992159867 988458314 986293841 980523802 974034681 963827720 955576001 946670476 939209020 927529855 922573764 912092988 897437654 884939017 869090147 851776325 837146237 825917123 807395100 795504941 781189629 756917817 735408790 707...
output:
Accepted
Test #110:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
50 50 50 50 37137055 356142 9286596 10406533 10677699 10817578 10886601 11296437 11370283 12867319 13896530 26071652 26317350 26485534 26825632 26857116 27783648 27889829 28357026 28499822 28573363 29616393 29717810 29824731 30602099 31315907 31334806 31710745 31739570 32004671 32015471 32261751 322...
output:
Accepted
Test #111:
score: 0
Accepted
time: 1ms
memory: 4096kb
input:
50 50 50 50 244717 244717 11852143 12249478 12310754 12699277 13098057 13598275 13875402 14320613 14337307 14502515 15158325 15436689 15953636 16060414 16123294 16401909 16696489 16702362 16950809 17235853 17309680 17350958 17578858 17749291 17758160 17806002 18599588 18852895 19090822 20496916 2063...
output:
Accepted
Test #112:
score: 0
Accepted
time: 1ms
memory: 3800kb
input:
50 50 1 50 108125183 69545237 108178399 135974614 178621204 213615496 256605544 294248678 332222572 363128778 397516484 430598455 460285707 491818514 513661337 541886025 567248989 590130647 615431522 641951026 664353983 683813118 695742893 725361065 742929129 761378385 778452808 795267779 815140137 ...
output:
Accepted
Test #113:
score: 0
Accepted
time: 1ms
memory: 3760kb
input:
50 50 1 50 317894 76528013 115626424 163743895 197181898 231252223 267928982 293612154 328354634 357473243 389807050 416942810 449206178 472829758 501789299 529184297 557130006 588238557 616712855 639287098 664928627 683865638 706204115 731018297 748330468 761888986 786292411 802648740 825656126 842...
output:
Accepted
Test #114:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
50 50 50 1 39569954 82407849 41648402 41261452 40696045 40175766 40071400 25042733 24504306 24480937 24045745 24019817 23805132 23193581 23062925 23011469 22560275 21950200 20860459 20581553 20204690 20190381 19304461 19280530 19197119 19111563 18668422 18304735 18141972 16746523 16430448 15190511 1...
output:
Accepted
Test #115:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
50 50 50 1 750911 72838504 36190804 35399778 35179334 34960854 34695247 34420165 34002616 33749492 33170131 33117502 32823566 32188298 31594526 31378396 31018884 30919527 29453381 28953382 28115822 28066205 28017839 27748135 27302823 27012095 26799236 26773136 26324614 26175546 26006100 24462825 244...
output:
Accepted
Test #116:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
50 50 25 50 980382992 448354 20407125 50410541 67944688 84480177 99313247 127478567 153156382 166652223 182095890 196234273 222209995 242705960 262377812 283596302 292448983 315829192 333572488 353189446 373546898 396345831 423087476 441314861 461450129 503097940 513142970 532151880 532713643 532870...
output:
Accepted
Test #117:
score: 0
Accepted
time: 1ms
memory: 3796kb
input:
50 50 50 25 59755862 14700979 15102364 15219537 15826552 15877599 16498063 16930197 16999885 17106399 17237536 18251611 18787663 18961417 19505817 19620064 19718852 19850365 19886838 20320484 20758804 20997660 21529015 22665984 22967881 44674241 14361370 14322890 13005570 12888155 12707974 12485436 ...
output:
Accepted
Test #118:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
1 50 1 50 42230506 42230506 55128319 65340093 114610664 138718450 207917151 210893593 211240113 244908523 315789147 348049618 361866095 371885953 381401083 409275860 471625499 487059354 525539376 531040079 561897527 562985720 571298388 586468518 624329625 647832840 653967292 693837485 702892895 7068...
output:
Accepted
Test #119:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
1 50 1 50 634567935 46849593 83402330 104306494 104442532 134704802 167543801 179142389 181180418 193426703 206285405 215352586 219797271 237732831 278480881 304666790 319991661 327860511 367015786 409558977 477702191 489989808 499028964 525648688 534717581 538381438 540678733 546056295 625558513 63...
output:
Accepted
Test #120:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
1 50 1 50 996100886 16967584 48140976 49006030 73147388 88059446 98578200 123657548 135664971 141633406 156384551 186136461 192857556 212349827 243288827 262833403 299180607 335055436 337354563 339522833 367315355 419001546 433295152 434856476 435561019 445467909 476516076 477821810 495829026 504587...
output:
Accepted
Test #121:
score: 0
Accepted
time: 0ms
memory: 4084kb
input:
50 1 50 1 55532192 55532192 55545058 74706951 100598458 112793505 123409428 135940917 142181486 144257282 158230135 163835464 170988781 182752857 231160118 235188793 259304035 273898675 289930031 292035680 353373298 388237461 400983392 489538950 510484858 559464608 561492448 574926929 584256420 5871...
output:
Accepted
Test #122:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
50 1 50 1 547797520 38254633 55250015 90801115 106029819 118034479 137684564 144427938 151634820 157671696 197258273 224232366 253829171 291284023 325788722 401794871 402158196 409183592 448409589 460594881 462250111 467896768 476895906 486639157 547797520 551441653 598626180 607464278 621220282 625...
output:
Accepted
Test #123:
score: 0
Accepted
time: 0ms
memory: 4072kb
input:
50 1 50 1 971336438 37723731 72649198 73422563 74237493 120508538 125128444 129284518 147800751 188125486 195389522 224848948 228087661 257968521 258503562 293879503 323339895 332907443 360910812 374830909 376121080 382421477 407912357 415219479 467993306 469288649 469472630 501184015 508183757 5311...
output:
Accepted
Test #124:
score: 0
Accepted
time: 0ms
memory: 4080kb
input:
50 50 50 50 900002451 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 900000050 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 9...
output:
Accepted
Test #125:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
50 50 50 1 900002451 2402 2353 2304 2255 2206 2157 2108 2059 2010 1961 1912 1863 1814 1765 1716 1667 1618 1569 1520 1471 1422 1373 1324 1275 1226 1177 1128 1079 1030 981 932 883 834 785 736 687 638 589 540 491 442 393 344 295 246 197 148 99 50 1 2403 2354 2305 2256 2207 2158 2109 2060 2011 1962 1913...
output:
Accepted
Test #126:
score: 0
Accepted
time: 0ms
memory: 4036kb
input:
50 50 1 1 900002451 900002451 2450 2449 2448 2447 2446 2445 2444 2443 2442 2441 2440 2439 2438 2437 2436 2435 2434 2433 2432 2431 2430 2429 2428 2427 2426 2425 2424 2423 2422 2421 2420 2419 2418 2417 2416 2415 2414 2413 2412 2411 2410 2409 2408 2407 2406 2405 2404 2403 2402 900002402 2401 2400 2399 ...
output:
Accepted
Test #127:
score: 0
Accepted
time: 0ms
memory: 4088kb
input:
50 50 1 50 900002451 900000050 900000099 900000148 900000197 900000246 900000295 900000344 900000393 900000442 900000491 900000540 900000589 900000638 900000687 900000736 900000785 900000834 900000883 900000932 900000981 900001030 900001079 900001128 900001177 900001226 900001275 900001324 900001373...
output:
Accepted
Test #128:
score: 0
Accepted
time: 0ms
memory: 4048kb
input:
14 16 13 5 345853273 3628141 12987529 61846219 62180055 165524100 58701774 56602834 53710058 47073748 46286302 40741136 39427814 36396469 35012453 19529557 16459918 100768216 104749076 164286853 171061023 261468026 166647989 165848242 164051130 164023950 163007820 97948018 94446908 91054606 82235273...
output:
Accepted
Test #129:
score: 0
Accepted
time: 1ms
memory: 4076kb
input:
31 27 26 11 554641252 19063221 19120586 19568537 21030198 21636207 22589199 24865397 24945108 25564705 28355218 63732943 28211215 26207194 18032208 12936366 10554038 10483550 10350552 9973139 7597794 7039231 6604357 6166135 1983601 1728550 1253528 877170 29925984 32936166 33470030 33931916 39245734 ...
output:
Accepted
Test #130:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
37 14 36 1 741333356 50759686 24205756 22610840 18859105 15624795 15048908 14214625 10669503 9330072 8997267 4976766 3947614 3687194 2618947 79547289 48989348 48112399 46077386 42495556 40086483 39819037 38841410 38456938 35640643 32993285 32920840 31792366 29159674 92446040 79497769 76779990 732809...
output:
Accepted
Test #131:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
10 45 2 31 964712464 8373703 45751341 59690081 94530354 96295857 124592102 151073179 178776885 205312626 209753843 245242619 246856112 276948252 296374358 321367395 335635253 373233286 384829307 437743845 510649443 558894339 584123198 684101161 736734384 810972602 847920806 907712786 946709888 94935...
output:
Accepted
Test #132:
score: 0
Accepted
time: 1ms
memory: 3776kb
input:
39 10 16 7 222928891 166160929 167032976 179875629 182183000 182327051 182915098 216498871 187008012 182402496 177716093 189377451 195161061 207694287 215888765 225762522 227267388 305646042 205844933 198735859 195321018 240758163 243834285 244271040 248238361 251818823 263887882 344123985 277396860...
output:
Accepted
Test #133:
score: 0
Accepted
time: 0ms
memory: 4064kb
input:
34 33 7 18 948996911 314004589 356701067 430461981 484986840 549406445 596414770 652359925 683068717 760651060 776327613 814145065 855279539 855539907 856267212 858666259 859462071 861505386 915305666 878249494 876595739 875685277 875025694 874187895 850022325 813448168 802302498 749690216 714209766...
output:
Accepted
Test #134:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
13 45 2 14 690151044 440799717 467768837 569473340 635606448 727713491 781546772 800791772 878063314 901224797 925948232 943787126 979068334 985673317 994625481 991560527 985009155 957643562 911493611 882417189 852520873 811350936 740646199 719556804 651487734 589892186 451927587 451556884 406586458...
output:
Accepted
Test #135:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
4 35 2 28 586502144 24444597 31797514 34267675 73423881 119351228 129964317 136502715 207570622 228847409 252872963 291202987 302639025 349527385 398049017 401306911 456200123 460894160 491450320 501266711 521657522 561742686 622887530 696283189 815078424 836100095 943850894 944926691 984792955 9830...
output:
Accepted
Test #136:
score: 0
Accepted
time: 1ms
memory: 3860kb
input:
50 28 1 9 467618621 919637458 947485656 953085057 973747949 985709787 990219147 997182325 999824835 999832851 998351652 997985775 991389259 984931775 976905739 962915131 947320444 926502885 910498293 879483658 861763994 835637447 811946118 786246788 758993477 728233131 702302796 670176101 639940846 ...
output:
Accepted
Test #137:
score: 0
Accepted
time: 0ms
memory: 4044kb
input:
7 19 7 4 185240372 515281702 554209351 555886458 648504228 539746659 536350648 529841771 506822316 494397029 474824882 430711443 361535049 312466772 243647072 205627923 181335144 139496429 82870032 3210424 573920027 627232626 671675454 765914306 674091255 613559772 612973225 600992842 593339544 4841...
output:
Accepted
Subtask #2:
score: 0
Runtime Error
Dependency #1:
100%
Accepted
Test #138:
score: 80
Accepted
time: 0ms
memory: 3924kb
input:
200 200 115 96 972862550 23298 51506 84932 95921 130970 131061 142211 152623 175006 195115 218510 245329 272564 276739 290672 304467 312857 351570 351740 351890 365406 388503 396342 424456 439419 442240 456166 459441 462456 483704 488390 497136 501434 527250 527830 528924 533204 536070 541198 604753...
output:
Accepted
Test #139:
score: 0
Accepted
time: 3ms
memory: 3992kb
input:
200 200 144 137 420657220 27045 120184 121383 124646 138251 159026 198518 259909 283763 284580 304365 320988 387264 396721 410512 412931 505188 510201 524245 529370 570124 592164 595673 607770 619721 622468 645567 681373 695138 723606 733323 777575 795251 796618 807277 852652 866858 894818 914473 98...
output:
Accepted
Test #140:
score: 0
Accepted
time: 4ms
memory: 3916kb
input:
200 200 182 92 880614098 570211 576393 636833 661116 662654 695012 696753 717286 762629 833323 861686 874063 903466 908548 995838 1024816 1031161 1038443 1052771 1054182 1085287 1097965 1104517 1122167 1157734 1183964 1184969 1199259 1221234 1221357 1228972 1255055 1255951 1280308 1292186 1293857 12...
output:
Accepted
Test #141:
score: 0
Accepted
time: 3ms
memory: 4004kb
input:
200 200 148 54 853209734 8884 10810 41186 41394 51714 82523 99434 100741 106780 154930 166715 181075 186515 205259 211877 277904 283202 310022 352988 356824 368630 381707 450795 470824 480842 537636 564681 579179 586958 610197 616454 620635 637821 640626 660902 736590 781177 793960 855714 885220 928...
output:
Accepted
Test #142:
score: 0
Accepted
time: 20ms
memory: 4252kb
input:
200 200 23 93 73770628 468755528 480050508 493327566 502010718 510386611 521759852 537811160 546662966 554983411 566025938 571449984 586139452 592327715 599019795 612402038 618222663 622252747 634496181 645003333 647629914 659432426 668888432 678782301 684930393 693943023 702424522 707901866 7134477...
output:
Accepted
Test #143:
score: 0
Accepted
time: 4ms
memory: 4208kb
input:
200 200 22 150 965962915 152139695 157631833 168919796 178545607 186948203 194293073 202880331 208469896 221140288 227176212 238109516 246386164 253295043 263270751 272268989 279104837 285161456 294992058 301478636 311362174 316210483 324849375 337045607 345319979 352703057 357861914 366614736 37432...
output:
Accepted
Test #144:
score: 0
Accepted
time: 8ms
memory: 3944kb
input:
200 200 77 54 637414106 504294159 504299992 504370995 504372910 504391459 504422021 504430716 504432521 504457008 504504929 504510339 504512253 504524028 504532012 504540563 504546076 504574655 504600183 504617305 504636482 504685595 504691093 509540721 509601568 509915573 509920276 509925852 509926...
output:
Accepted
Test #145:
score: 0
Accepted
time: 16ms
memory: 3944kb
input:
200 200 19 25 12264313 951600299 953442099 957378883 958703473 962769764 966081760 967309436 968496148 968505213 968522921 968578108 968598710 969863059 969903128 969921023 969934979 969936326 969939215 969941482 969964428 970013385 970058600 970204446 970314964 973156252 970144531 969793099 9697844...
output:
Accepted
Test #146:
score: 0
Accepted
time: 9ms
memory: 4220kb
input:
200 200 93 198 345263816 17252 5083619 10491466 15050013 21648126 23814872 29123543 35475207 41828426 44315017 52124473 57392356 60121079 65499940 70559447 76541456 80053696 85009482 90660842 95284155 100229491 104778253 113216823 115593929 120431710 125110851 132361199 136259540 139897121 144672838...
output:
Accepted
Test #147:
score: 0
Accepted
time: 3ms
memory: 4000kb
input:
200 200 100 48 400174103 274331072 274348409 274463401 274469374 274471823 274482470 274525997 274531421 274538488 274545925 274583108 274589994 274628973 274658974 274665123 274726030 276849038 276877692 276879705 276879793 276901828 276949778 276960593 276961174 276962717 276983132 276994734 27699...
output:
Accepted
Test #148:
score: 0
Accepted
time: 6ms
memory: 3988kb
input:
200 200 72 164 741441176 15523 4694128 9819725 17838304 19491106 24565370 30088553 34719888 42341003 44190413 51666254 57273486 59319518 67505486 72552311 74591157 82473903 87118676 89044137 95262294 99337634 106403137 112303917 114171898 120466197 125068978 129410530 134558438 138108386 145320579 1...
output:
Accepted
Test #149:
score: 0
Accepted
time: 14ms
memory: 3956kb
input:
200 200 48 68 19346763 612674732 621586178 630212226 639945851 651474823 661269762 672930238 678113018 687180828 693184688 704344364 711455166 718306026 729831087 737458261 746630372 749775671 761486436 763528576 772445821 777339920 779045719 779110483 779191251 779217891 779222292 779225798 7792446...
output:
Accepted
Test #150:
score: 0
Accepted
time: 3ms
memory: 3968kb
input:
200 200 191 116 985441726 23624 30857 48578 63191 87228 107975 129697 132798 160175 165090 166956 200992 269900 310710 343644 351403 356446 380995 381233 384577 385845 386332 401472 414096 455793 456737 506742 521694 546487 572462 599347 600785 601423 621371 633176 654266 674526 716876 717875 732421...
output:
Accepted
Test #151:
score: 0
Accepted
time: 13ms
memory: 4016kb
input:
200 200 18 114 457651831 353344861 360304241 369242021 377772502 382306437 392726107 401994756 407939484 417205601 424692061 430197755 438340758 448110957 450555915 463005173 463747234 475750472 484320773 491983954 496746235 505255728 514748304 521805871 528049567 534478306 540676243 546522606 54977...
output:
Accepted
Test #152:
score: 0
Accepted
time: 51ms
memory: 4236kb
input:
200 200 20 8 19791044 972714663 972770719 972778870 972806867 972817549 972823483 972855932 976956292 974877274 974707103 974499064 974442521 973310779 973272756 973262175 973247027 973195515 973107255 973103798 973092571 973087254 973066338 973044250 973026522 972971463 972909575 972870614 97191333...
output:
Accepted
Test #153:
score: 0
Accepted
time: 7ms
memory: 3916kb
input:
200 200 193 129 519312713 1700645 1711223 1727509 1730894 1736457 1745412 1796917 1798913 1801622 1815381 1822967 1860676 1876979 1902316 1943103 1944491 1951675 1956021 1958903 1980476 1982831 2009106 2016783 2042252 2051687 2063590 2101779 2107982 2183682 2252144 2305995 2365492 2398330 2452253 24...
output:
Accepted
Test #154:
score: 0
Accepted
time: 7ms
memory: 3932kb
input:
200 200 58 12 544893077 802587354 802596137 802650107 802673219 806369480 806373117 806376073 806404494 806677319 806736437 806753720 812433681 806885971 806562762 805852247 805833445 805796590 805778665 805745507 805652683 805649624 805628506 805624230 805623755 805589995 805560697 805550591 805514...
output:
Accepted
Test #155:
score: 0
Accepted
time: 7ms
memory: 3932kb
input:
200 200 88 126 164950739 3600 5272550 10700809 15386027 21529210 24543318 31778502 34048360 40417035 44000811 49110896 54526227 60752568 67781416 76728760 83429747 92870274 105837690 112695467 123881472 130525408 141553560 154692343 159934868 171544441 179533743 190576036 197169847 205308304 2152554...
output:
Accepted
Test #156:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
200 200 160 164 919915769 28647 4784591 10038053 15378301 20350985 23624018 23640037 23654532 23660252 23692103 23705138 23724542 23740992 23765541 23772765 23774698 23807944 23809875 23851474 23866339 23896108 23897251 23903941 23927261 23943121 24026671 24047941 24066745 24095156 24102605 24123910...
output:
Accepted
Test #157:
score: 0
Accepted
time: 3ms
memory: 3900kb
input:
200 200 158 51 152158962 3632626 3656921 3753140 3754573 3770835 3775421 3785110 3785435 3818075 3818450 3834398 3852211 3873240 3885497 3906152 3906669 3909371 3924134 3927352 3932172 3933002 3971946 4032710 4110269 4137125 4144176 4147141 4163447 4183336 4196048 4233586 4284037 4321863 4331484 439...
output:
Accepted
Test #158:
score: 0
Accepted
time: 0ms
memory: 3952kb
input:
200 200 57 84 861509630 422322589 435927277 441304061 453114872 466729556 476812691 489027923 496484202 503698227 520345301 524486845 537336200 546193043 557959752 562847731 576118978 582585826 595513868 603591773 614039556 625759770 631518605 637792315 652033155 658536980 669120685 677492632 686030...
output:
Accepted
Test #159:
score: 0
Accepted
time: 4ms
memory: 3912kb
input:
200 200 194 155 193474569 70429 114587 153621 205349 217769 254460 294819 305988 308125 310148 329181 381979 386299 432649 435125 449487 509974 514745 521056 544622 553935 575016 1420316 1453719 1488781 1546336 1567433 1601687 1618260 1628709 1640049 1673238 1698747 1738792 1770714 1775490 1816353 1...
output:
Accepted
Test #160:
score: 0
Accepted
time: 6ms
memory: 3988kb
input:
200 200 125 182 446192329 49693 5989069 9957370 14440648 19570452 24441029 29385705 34426098 39409051 45048019 50244224 55688613 60963016 66019384 71374693 76031684 80984102 86043397 91683933 96352024 100766454 105792073 111516219 115968974 121416940 124757751 129805341 134862904 139547081 144847999...
output:
Accepted
Test #161:
score: 0
Accepted
time: 4ms
memory: 3920kb
input:
200 200 65 176 958531085 341747 6579966 11673261 14743724 20328666 25029705 31688236 37149302 41631665 47505243 51956108 53768387 62947462 65589626 71467440 77455581 82117402 87925174 92980087 94716603 101384052 106771846 108439596 113180871 119485976 126356391 127892052 133121884 138830517 14439705...
output:
Accepted
Test #162:
score: 0
Accepted
time: 14ms
memory: 4028kb
input:
200 200 85 79 106368416 316768044 316782132 316782838 316816472 316843600 316852753 316864788 316869581 316905225 316985813 316989315 317036678 317066227 317128432 317163453 317197464 317249773 317252892 317346118 317346596 317414720 317423652 317449696 317480361 317517097 317562152 317570313 317574...
output:
Accepted
Test #163:
score: 0
Accepted
time: 3ms
memory: 3928kb
input:
200 200 11 39 613953134 906658725 907095618 914522945 916114989 922846769 924973999 930069616 934811355 937465653 942596894 945956073 947570267 950827624 953293957 957808311 960210236 962552313 965845933 967866759 971162705 973241645 975798948 978672466 979357006 981685941 983806396 985190298 987912...
output:
Accepted
Test #164:
score: 0
Accepted
time: 21ms
memory: 3948kb
input:
200 200 61 20 266440950 763395105 763410521 763490654 763508660 763528219 763536031 763541416 763544115 763549353 763561689 763580884 763625677 763639095 763677929 763902133 763909780 764056504 764059507 764369659 772040106 765024910 765017842 764938576 764870530 763970353 758994049 758969863 758958...
output:
Accepted
Test #165:
score: 0
Accepted
time: 3ms
memory: 3928kb
input:
200 200 139 88 804423770 416024 445151 489379 519221 534582 569252 574239 577261 611533 637671 639462 661088 662202 710172 729403 763148 773649 820335 856467 898884 916515 950655 966625 1161707 1173475 1197024 1230782 1261679 1368167 1389603 1397846 1401818 1411384 1421654 1456544 1468986 1473606 14...
output:
Accepted
Test #166:
score: 0
Accepted
time: 0ms
memory: 4188kb
input:
200 200 104 59 641366860 194167547 194199770 194219025 194226269 194239642 194268054 194272027 194285923 194303667 194305083 194305907 194339507 194358385 194363463 194380792 194416217 194417199 194431986 194450908 194487690 194505414 194517092 194633422 194637499 194644021 194650280 194662461 19473...
output:
Accepted
Test #167:
score: 0
Accepted
time: 6ms
memory: 3924kb
input:
200 200 102 136 673399449 37808 5207117 12581534 16375266 20826242 24961113 29372983 34036263 40615761 44879929 50467702 53474282 61064077 63665236 70659859 74349501 80424266 83774843 88251476 95954745 100153515 104325290 109832432 113256013 120447567 125927024 131302186 133938664 138684710 14503338...
output:
Accepted
Test #168:
score: 0
Accepted
time: 3ms
memory: 3912kb
input:
200 200 1 1 999964418 999964418 999949476 999876618 999781741 999766264 999271699 999035041 998725276 998444312 998161055 997787124 997084336 996684925 995908373 995342054 994679705 994203225 993356421 992606742 991651818 990894662 989898423 989012510 988061754 986937250 985257940 984436804 98320558...
output:
Accepted
Test #169:
score: 0
Accepted
time: 3ms
memory: 3856kb
input:
200 200 1 1 999991697 999995380 999991697 999936926 999925550 999808689 999650419 999483395 999312090 999096338 998717038 998335832 997966844 997222071 996669070 996004196 995542393 994789423 993760767 992285997 991851921 991218227 990180866 989120451 987571172 986763721 985719942 984401884 98276429...
output:
Accepted
Test #170:
score: 0
Accepted
time: 3ms
memory: 4016kb
input:
200 200 1 1 999897083 999967758 999946786 999877180 999752908 999694059 999514840 999171103 998963911 998677248 997802075 997705897 997322549 997026523 996375715 995957860 995218095 994494336 993752593 992946734 992208922 990974675 990317327 989173444 988064146 987231392 985713427 984359782 98299854...
output:
Accepted
Test #171:
score: 0
Accepted
time: 3ms
memory: 4152kb
input:
200 200 1 1 18873211 999994005 999968791 999957466 999789471 999613356 999366834 999128663 998844052 998552692 998238243 997469038 997098750 996582856 995972272 995314263 994582204 993953516 993119200 992485557 991750366 990751809 989961454 989410288 988239178 987260251 986109740 984855181 983642255...
output:
Accepted
Test #172:
score: 0
Accepted
time: 3ms
memory: 3960kb
input:
200 200 1 1 29277423 999952431 999945492 999923815 999685545 999576669 999375609 999237148 998939653 998791965 998350300 997953806 997411828 996644639 996269598 995645815 995083094 994173998 993508697 992925540 992219838 991212745 990351647 989442851 988649220 987667238 986355152 984826260 983367083...
output:
Accepted
Test #173:
score: -80
Runtime Error
input:
200 200 1 1 9500457 999954444 999898999 999847087 999714726 999596391 999281582 999153774 998779865 998524156 998191711 997507948 996993518 996519123 995913724 995407623 994842896 993771095 992941661 992202067 991401113 990174931 989029108 988012746 987120842 985842892 984901715 983576064 982164480 ...
output:
Wrong Answer [2]