QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#486780 | #2672. Rectangles | Dan4Life# | 27 | 35ms | 40772kb | C++23 | 2.0kb | 2024-07-22 01:45:37 | 2024-07-22 01:45:37 |
Judging History
answer
#include "rect.h"
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define sz(a) (int)a.size()
#define all(a) begin(a),end(a)
using ll = long long;
using vi = vector<int>;
const int mxN = 702;
int n, m;
vector<vector<vector<int>>> goodc;
vector<vector<bitset<mxN>>> goodr;
vector<vector<int>> badr, badc;
void Rotate(vector<vi> &a){
vector<vi> b; b.clear();
for(int i = 0; i < sz(a[0]); i++){
vi w; w.clear();
for(int j = 0; j < sz(a); j++){
w.pb(a[j][i]);
}
b.pb(w);
}
a.swap(b);
}
ll count_rectangles(vector<vi> a) {
if(n<m) Rotate(a);
n = sz(a); m = sz(a[0]);
ll ans = 0;
goodc.resize(n,vector<vi>(m,vi(n,0)));
goodr.resize(n,vector<bitset<mxN>>(m,bitset<mxN>(0)));
badr.resize(n,vi(m,0)); badc.resize(n,vi(m,0));
for(int i = 1; i < n-1; i++){
for(int j = 1; j < m-1; j++){
//nxR[i][j] = next index such that a[i][index] <= a[i][j] or n
//prR[i][j] = previous index such that a[i][index] <= a[i][j] or
// row
int boundaryR = a[i][j-1], mx = 0;
badr[i][j]=m-1;
for(int k = j; k < m-1; k++){
mx = max(mx,a[i][k]);
if(boundaryR<=mx){
badr[i][j]=k;
break;
}
if(a[i][k+1]<=mx) continue;
goodr[i][j][k]=1;
}
// column
int boundaryC = a[i-1][j]; mx = 0;
badc[i][j]=n-1;
for(int k = i; k < n-1; k++){
mx = max(mx, a[k][j]);
if(boundaryC<=mx){
badc[i][j]=k;
break;
}
if(a[k+1][j]<=mx) continue;
goodc[i][j][k]=1;
}
for(int k = 0; k < n; k++)
goodc[i][j][k]+=goodc[i][j-1][k];
}
}
for(int i = 1; i < n-1; i++){
for(int j = 1; j < m-1; j++){
int endK = n-1;
for(int k = j; k < m-1; k++){
if(badr[i][j]<=k) break;
endK = min(endK, badc[i][k]);
if(!goodr[i][j][k]) continue;
for(int l = i; l < endK; l++){
if(!goodr[l][j][k]) break;
int sum = goodc[i][k][l]-goodc[i][j-1][l];
if(sum!=k-j+1) continue;
//cout << i << " " << j << " " << l << " " << k << "\n";
ans++;
}
}
}
}
return ans;
}
详细
Subtask #1:
score: 8
Accepted
Test #1:
score: 8
Accepted
time: 1ms
memory: 4032kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 3996 3689 3664 3657 3646 3630 3621 3619 3609 3604 3601 3598 3584 3581 3574 3561 3554 3543 3537 3531 3522 3519 3505 3500 3498 3492 3476 3467 3460 3994 3993 3458 3451 3440 3431 3420 3395 3346 3333 3282 3268 3261 3241 3204 3168 3121 3103 3083 3076 2923 2872 28...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 784
result:
ok 3 lines
Test #2:
score: 0
Accepted
time: 1ms
memory: 4136kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 6996495 6421812 6403903 6382663 6362922 6334993 6329757 6315983 6278578 6262778 6254104 6244987 6232172 6226987 6194797 6176457 6167900 6140865 6123884 6116295 6101556 6079188 6068604 6049308 6034911 6034041 6015464 6004614 5992300 6995512 6987555 5978527 5...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 784
result:
ok 3 lines
Test #3:
score: 0
Accepted
time: 1ms
memory: 4128kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 12330 11301 11283 11257 11240 11194 11170 11135 11116 11095 11085 11048 11000 10972 10914 10909 10897 10877 10835 10823 10789 10781 10769 10745 10708 10690 10665 10661 10645 12329 12326 10635 10633 10590 10557 10542 10513 10491 10418 10406 10096 10086 9930 ...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 784
result:
ok 3 lines
Test #4:
score: 0
Accepted
time: 1ms
memory: 4020kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #5:
score: 0
Accepted
time: 1ms
memory: 3960kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 1023589 2780022 3479561 3782160 3952727 450470 3945264 2170843 3225056 1786041 1389306 1419234 3915988 520009 1251948 104723 1856504 3637799 1807024 2170722 2803041 2964655 2003819 1048641 3939016 2826494 3085605 1000286 3022731 1498648 3779781 3073573 7294...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 268
result:
ok 3 lines
Test #6:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 13 2314857 2951714 2551799 1262649 877317 2582030 1583139 3582015 1970170 2496877 252584 1959948 809239 1363336 486953 3562759 2227001 1996347 1994014 2317663 3232136 648728 2110306 2235717 2759784 2530855 258050 2824581 1243255 3198783 565865 231889 3727287 8...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 112
result:
ok 3 lines
Test #7:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 12 30 1713490 434279 757758 2071347 3203350 423584 3882119 3134239 1954599 1689833 1956535 3906809 3531554 3887373 3954136 2363040 3764367 1582213 271999 3004358 1532278 1181001 435806 2138704 2615171 1339870 717957 1485488 3841400 1190729 2110431 3716435 2650629...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 87
result:
ok 3 lines
Test #8:
score: 0
Accepted
time: 1ms
memory: 4020kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 9 2 6 6 9 5 7 6 4 4 4 4 0 1 7 3 8 0 6 4 8 1 5 2 2 9 9 9 9 8 5 4 0 7 2 3 7 8 4 10 0 9 3 8 5 1 3 9 6 2 4 2 5 2 7 5 10 6 9 5 10 9 7 9 3 3 8 1 3 3 8 10 0 6 1 1 7 8 10 0 8 1 4 5 9 4 2 9 5 0 3 10 10 0 4 5 1 2 6 10 2 8 8 9 10 2 2 8 2 3 3 10 0 2 7 0 7 9 10 6 3 3 4 ...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 189
result:
ok 3 lines
Test #9:
score: 0
Accepted
time: 1ms
memory: 4264kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 89 58 32 43 76 79 48 2 31 26 51 12 17 19 93 0 37 54 100 76 73 46 38 46 34 47 99 97 42 20 55 14 72 28 25 79 37 28 30 13 42 94 45 29 90 92 5 5 100 46 65 26 57 75 68 49 99 97 34 41 86 3 38 4 33 40 49 35 13 62 62 36 92 84 7 24 0 51 100 89 57 77 63 12 39 37 99 9...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 235
result:
ok 3 lines
Test #10:
score: 0
Accepted
time: 1ms
memory: 3892kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 1915 533 904 1917 459 602 1419 963 1587 1715 886 1351 1406 1775 1170 909 543 289 616 717 623 531 1022 1245 390 1654 23 693 539 1488 1875 743 1220 224 459 1300 755 1009 195 228 1988 103 1312 1601 1314 482 621 1919 107 1637 1477 1852 482 1402 564 986 1085 326...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 251
result:
ok 3 lines
Test #11:
score: 0
Accepted
time: 1ms
memory: 4024kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 1791839 3171005 126890 3999980 1870566 19865 2616736 3287382 281079 3380697 2820606 938251 3689860 2904336 50801 2365719 280362 2693770 3999972 3571330 249259 256875 3812828 408564 2317613 3654534 2735648 3307878 3264923 2800617 3855911 2226794 1132955 3999...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 245
result:
ok 3 lines
Test #12:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 1 1 1
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #13:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 1 5 0 0 0 1 0
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #14:
score: 0
Accepted
time: 1ms
memory: 4016kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 30 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0 1 1 1 0 0 0 0 1 0 0 0 1 1 0 1 0 0 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 0 1 0 0 1 0 0 1 0 1 1 0 1 0 0 0 0 0 0 1 1 1 0 0 0 1 0 1 1 0 1 1 1 1 1 1 0 1 1 1 0 0 1 0 1 0 1 0 0 0 0 0 0 1 1 0 1 0 0 1 0 0 1...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 22
result:
ok 3 lines
Test #15:
score: 0
Accepted
time: 0ms
memory: 3904kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 30 15 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #16:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 10 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #17:
score: 0
Accepted
time: 0ms
memory: 3912kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 1 1 390
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #18:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 10 2 789 869 38 634 720 283 421 663 85 217 520 923 1198 1014 434 437 481 346 989 1128
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #19:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 10 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 0
result:
ok 3 lines
Test #20:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 3 3 1117 259 944 753 34 626 408 210 361
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 1
result:
ok 3 lines
Subtask #2:
score: 7
Accepted
Dependency #1:
100%
Accepted
Test #21:
score: 7
Accepted
time: 3ms
memory: 6088kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 80 80 6399 6239 6237 6235 6233 6231 6229 6227 6225 6223 6221 6219 6217 6215 6213 6211 6209 6207 6205 6203 6201 6199 6197 6195 6193 6191 6189 6187 6185 6183 6181 6179 6177 6175 6173 6171 6169 6167 6165 6163 6161 6159 6157 6155 6153 6151 6149 6147 6145 6143 6141 61...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 6084
result:
ok 3 lines
Test #22:
score: 0
Accepted
time: 0ms
memory: 6120kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 80 80 6995869 6823979 6821148 6815756 6815207 6814302 6813354 6810306 6802453 6801971 6800699 6796988 6793939 6789808 6789656 6789173 6787038 6783779 6781873 6780805 6777577 6775172 6773879 6771815 6771457 6770529 6769434 6768871 6765682 6762327 6761788 6760221 6...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 6084
result:
ok 3 lines
Test #23:
score: 0
Accepted
time: 3ms
memory: 6020kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 80 80 45666 44500 44487 44478 44472 44457 44437 44427 44425 44417 44389 44376 44363 44349 44343 44330 44327 44316 44311 44275 44263 44250 44236 44217 44207 44202 44198 44187 44176 44171 44164 44152 44139 44132 44121 44118 44114 44106 44098 44080 44062 44035 44031...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 6084
result:
ok 3 lines
Test #24:
score: 0
Accepted
time: 2ms
memory: 6136kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 80 80 2 0 0 1 2 0 2 2 0 2 2 1 0 1 2 0 1 2 0 1 2 2 1 0 0 1 1 0 2 2 0 1 1 0 2 0 1 2 2 0 1 2 1 1 0 0 0 0 2 1 1 1 2 1 0 2 1 2 0 0 2 2 0 1 0 2 0 0 0 0 2 0 1 1 0 2 2 2 0 1 0 2 1 2 2 2 0 0 2 1 0 1 0 1 1 1 0 1 2 1 0 0 2 0 0 1 2 2 2 2 1 1 2 2 2 2 2 0 1 2 0 2 0 1 2 2 0 2 1...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 604
result:
ok 3 lines
Test #25:
score: 0
Accepted
time: 2ms
memory: 6120kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 79 80 194 359 220 281 96 125 394 206 8 347 335 286 226 252 177 318 175 256 295 8 144 250 15 394 28 242 313 86 111 260 281 0 197 0 169 35 259 136 260 28 351 372 173 333 259 1 166 60 174 174 169 273 354 253 371 251 231 280 291 300 23 42 32 216 368 82 128 122 53 356...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 2039
result:
ok 3 lines
Test #26:
score: 0
Accepted
time: 0ms
memory: 5952kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 80 79 88995 3767 58230 29438 79375 65094 75692 106476 59097 52528 2433 35219 20518 86985 36516 18893 58480 88841 78127 23743 10754 44082 40389 28839 34137 93610 20071 101014 110860 116175 108002 10318 64829 68556 68462 41823 20719 95456 68764 14959 34888 26983 67...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 2022
result:
ok 3 lines
Test #27:
score: 0
Accepted
time: 2ms
memory: 6120kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 80 80 54 108 179 58 153 117 167 110 35 166 118 103 151 189 103 16 176 178 170 122 7 171 85 85 199 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 191 1...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 2053
result:
ok 3 lines
Test #28:
score: 0
Accepted
time: 1ms
memory: 4728kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 80 40 3999953 3999951 3999951 3999951 3999964 3895745 1454617 2414247 1107985 3103018 3222314 3999955 371115 3404196 1535946 1418226 939869 3017676 472971 3060686 965692 3999973 1038440 3322290 2047122 303533 3942758 4000000 1579228 949819 685515 836441 3037225 1...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 985
result:
ok 3 lines
Subtask #3:
score: 12
Accepted
Dependency #2:
100%
Accepted
Test #29:
score: 12
Accepted
time: 32ms
memory: 40772kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 200 200 39999 39599 39597 39595 39593 39591 39589 39587 39585 39583 39581 39579 39577 39575 39573 39571 39569 39567 39565 39563 39561 39559 39557 39555 39553 39551 39549 39547 39545 39543 39541 39539 39537 39535 39533 39531 39529 39527 39525 39523 39521 39519 395...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 39204
result:
ok 3 lines
Test #30:
score: 0
Accepted
time: 35ms
memory: 40768kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 200 200 39999 39599 39597 39595 39593 39591 39589 39587 39585 39583 39581 39579 39577 39575 39573 39571 39569 39567 39565 39563 39561 39559 39557 39555 39553 39551 39549 39547 39545 39543 39541 39539 39537 39535 39533 39531 39529 39527 39525 39523 39521 39519 395...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 39204
result:
ok 3 lines
Test #31:
score: 0
Accepted
time: 35ms
memory: 40688kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 200 200 3999929 3955291 3955251 3955094 3954692 3954511 3954000 3953861 3953716 3953556 3953273 3953018 3952797 3952460 3952349 3952295 3952180 3951988 3951792 3951715 3951537 3950843 3950718 3950522 3950364 3950148 3949624 3949467 3949390 3949347 3949342 3949263...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 39204
result:
ok 3 lines
Test #32:
score: 0
Accepted
time: 7ms
memory: 40512kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 200 200 0 2 2 1 1 2 2 1 2 2 2 0 1 1 2 0 2 2 0 2 2 1 1 0 1 2 2 2 2 0 1 1 1 0 0 2 0 2 0 0 2 0 2 2 2 0 0 1 2 1 0 2 0 1 0 1 2 0 0 0 2 0 2 2 2 0 0 2 2 1 2 1 0 0 0 2 2 0 0 2 2 0 1 2 1 1 1 0 1 2 2 1 1 0 2 0 2 2 0 0 0 2 1 1 1 2 2 2 2 1 0 0 0 0 1 2 0 2 1 1 1 2 1 0 2 0 2 2...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 3861
result:
ok 3 lines
Test #33:
score: 0
Accepted
time: 11ms
memory: 40496kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 200 200 39 226 249 273 185 325 263 289 116 390 303 8 320 83 20 223 297 82 75 182 334 155 237 255 355 348 297 193 367 211 95 166 95 7 102 157 97 192 135 296 90 234 367 223 273 199 81 316 257 58 290 349 347 44 107 214 305 282 11 316 28 245 194 10 56 177 311 128 163...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 13254
result:
ok 3 lines
Test #34:
score: 0
Accepted
time: 12ms
memory: 40740kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 200 200 1849393 990026 3807981 2026417 3709706 1779407 3105185 517059 960053 1000193 425288 2001296 597985 1773267 3897522 137985 172281 3204036 523434 230323 1908140 3293089 617670 3210328 334550 711309 1172868 3082055 575542 2382335 1666605 1385296 2561234 2249...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 13363
result:
ok 3 lines
Test #35:
score: 0
Accepted
time: 7ms
memory: 40660kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 200 200 215633 351336 298291 393926 399978 206545 399963 34343 399959 399964 223455 83831 288340 399958 230602 194600 290281 24536 18156 399992 138830 287375 146962 276243 399944 389827 399954 313289 196981 319846 379003 399965 296178 399958 246649 223443 112683 ...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 13289
result:
ok 3 lines
Test #36:
score: 0
Accepted
time: 13ms
memory: 40124kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 199 198 1687174 1831497 4742212 5171766 3622914 6999966 1044390 5005447 2635840 5121094 6999969 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999955 6999995 2462337...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 13115
result:
ok 3 lines
Subtask #4:
score: 0
Memory Limit Exceeded
Dependency #3:
100%
Accepted
Test #37:
score: 0
Memory Limit Exceeded
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 700 700 0 1 3 6 10 15 21 28 36 45 55 66 78 91 105 120 136 153 171 190 210 231 253 276 300 325 351 378 406 435 465 496 528 561 595 630 666 703 741 780 820 861 903 946 990 1035 1081 1128 1176 1225 1275 1326 1378 1431 1485 1540 1596 1653 1711 1770 1830 1891 1953 201...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 698
result:
Subtask #5:
score: 0
Wrong Answer
Test #53:
score: 0
Wrong Answer
time: 3ms
memory: 4692kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 3 2500 3999533 3994407 3992243 3991052 3990430 3988819 3987546 3985557 3983808 3983398 3982565 3981632 3981437 3979888 3979428 3978697 3978033 3975044 3973166 3972565 3971499 3970538 3969576 3969014 3968513 3968337 3966950 3965168 3964140 3963957 3962080 3961829 ...
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 5762
result:
wrong answer 3rd lines differ - expected: '2498', found: '5762'
Subtask #6:
score: 0
Memory Limit Exceeded
Test #64:
score: 13
Accepted
time: 0ms
memory: 3812kb
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 10 10 1 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 1 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 1 1 1 0 1 1 0 0 1 1 0 1 0 0 1 0 0 0 1 1 0 0 1 0 1 1 1 1 1 1 1 0 1 0 0 0 1 1 1 1 0 0 1 0 0 1 1 0 1 0 1 1 0 0 0 0 0 1 0 1 1 0
output:
907404fa-efbb-4a2c-83b8-4c377409c80c OK 2
result:
ok 3 lines
Test #65:
score: -13
Memory Limit Exceeded
input:
8d9a74d5-4c4b-4437-9c49-114beaeb8f1a 1234 2321 0 0 0 1 0 0 0 1 0 0 0 1 1 1 0 1 1 1 0 0 0 0 1 1 1 1 0 1 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 0 0 0 1 0 0 1 1 0 1 1 1 1 1 0 0 1 1 1 1 0 1 1 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 1 1 0 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1...
output:
Unauthorized output
result:
Subtask #7:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
0%