QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#543993#8255. Room TemperatureBucketsmith35 1ms3836kbC++20325b2024-09-02 00:16:242024-09-02 00:16:24

Judging History

你现在查看的是最新测评结果

  • [2024-09-02 00:16:24]
  • 评测
  • 测评结果:35
  • 用时:1ms
  • 内存:3836kb
  • [2024-09-02 00:16:24]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);

    int n, T;
    cin >> n >> T;
    vector<int> a(n);
    for(auto &x : a) {
        cin >> x;
        x %= T;
    }
    
    sort(a.begin(), a.end());
    cout << (a.back() - a.front() + 1) / 2;
}

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 15
Accepted
time: 0ms
memory: 3588kb

input:

2 1000000000
870851814 881870957

output:

5509572

result:

ok 1 number(s): "5509572"

Test #2:

score: 15
Accepted
time: 0ms
memory: 3612kb

input:

2 2691
205734472 599908142

output:

660

result:

ok 1 number(s): "660"

Test #3:

score: 0
Wrong Answer
time: 0ms
memory: 3596kb

input:

2 1000000000
594215883 41345726

output:

276435079

result:

wrong answer 1st numbers differ - expected: '223564922', found: '276435079'

Subtask #2:

score: 5
Accepted

Test #11:

score: 5
Accepted
time: 1ms
memory: 3488kb

input:

3000 1
527962400 375396162 403550632 368119563 98122336 575071005 735930417 713872349 126691431 587408550 68301442 78445831 779182574 900615066 540352310 97512141 56370167 875603720 977151830 187655072 321929392 68890256 341544318 18277276 427645487 5442872 264570852 285260601 560506154 919011927 20...

output:

0

result:

ok 1 number(s): "0"

Test #12:

score: 5
Accepted
time: 1ms
memory: 3588kb

input:

3000 1
125514453 768659053 486755528 299945084 862360713 8675510 858615908 36113622 852434719 631544026 152565003 248475502 152208269 372824161 605166385 947406972 22495491 16144197 428103403 540600274 825892700 402884826 869448753 21131099 563254083 482692292 836456471 136772702 161953814 632591878...

output:

0

result:

ok 1 number(s): "0"

Test #13:

score: 5
Accepted
time: 0ms
memory: 3808kb

input:

500 1
877137499 911480798 105327978 808804265 727937304 637853446 718031798 765195806 838206927 484239981 607467844 605792967 38697323 332194610 273988993 323047109 798562931 435509933 372308228 443534704 707117313 487932300 211775548 761591411 77454451 882287790 277784787 263090914 819288580 176177...

output:

0

result:

ok 1 number(s): "0"

Test #14:

score: 5
Accepted
time: 1ms
memory: 3492kb

input:

3000 1
302072813 159511621 389241523 87239051 654013995 612092525 811507271 759331557 82587805 4610835 527337463 225987819 848995387 369192513 837790413 257183405 827634015 124043241 120492531 441525119 740937 215335731 287893333 646763119 353975191 806994341 813045851 410859105 603701099 713224409 ...

output:

0

result:

ok 1 number(s): "0"

Test #15:

score: 5
Accepted
time: 0ms
memory: 3608kb

input:

500 1
81888042 43067133 107207954 11840122 12213120 1564709 591852273 88838690 961663051 516561909 168803248 844631608 873195256 827482724 743609376 619362989 538294587 82184630 144127319 243409882 211682139 271003483 663591071 168473717 654369346 16498799 591919038 700712177 385773734 618206739 813...

output:

0

result:

ok 1 number(s): "0"

Subtask #3:

score: 30
Accepted

Dependency #2:

100%
Accepted

Test #16:

score: 30
Accepted
time: 1ms
memory: 3532kb

input:

3000 2
885745611 864341459 300047319 287916141 644603625 884166447 590534965 653358937 990188463 990316905 558306521 980116759 553013905 519316677 185497721 825112521 474133783 274235087 415114857 272795329 667603077 923296831 577923973 907451785 74744583 582644091 637370755 55344013 145242745 11163...

output:

0

result:

ok 1 number(s): "0"

Test #17:

score: 30
Accepted
time: 0ms
memory: 3828kb

input:

3000 2
815254336 124748890 922650362 491188496 844408566 4477401 897872910 543206825 520044175 152252928 137325742 296978488 94941447 128102092 232850362 442060951 176696075 19548785 80969000 215525942 924301170 837296603 303165509 108844385 266183198 990018404 686038287 219436341 911589193 14746520...

output:

1

result:

ok 1 number(s): "1"

Test #18:

score: 30
Accepted
time: 0ms
memory: 3780kb

input:

500 2
401665219 27125575 775455335 839862311 960668465 238565856 738888265 901690231 304617077 103869276 209825343 618624634 605291100 268367109 261071747 998379490 704657059 187305917 910307778 870658986 536558030 6581819 190056964 211565999 892305820 620959159 360551386 791369750 697844538 6282286...

output:

1

result:

ok 1 number(s): "1"

Test #19:

score: 30
Accepted
time: 1ms
memory: 3604kb

input:

3000 2
522476642 810060218 147624038 855137278 915087104 81884778 525414244 894662888 410263396 941820940 423155602 520147790 615706710 710760688 226912160 596683116 203181268 324211490 679562872 268407934 204591892 80890276 839993536 16090044 796081826 673760802 901037356 780466340 43952110 3614940...

output:

0

result:

ok 1 number(s): "0"

Test #20:

score: 30
Accepted
time: 0ms
memory: 3524kb

input:

500 2
401575885 412743311 771792855 497402889 589191539 886766329 406659227 453993629 496243093 779810717 930633301 930956619 242644227 356605399 364800377 126585217 707620365 253271779 307180205 20790719 91049019 110549957 578458983 224326281 202269525 831044405 944165261 175228805 838484973 876412...

output:

0

result:

ok 1 number(s): "0"

Test #21:

score: 30
Accepted
time: 1ms
memory: 3628kb

input:

3000 2
303563168 71740834 195834514 3380992 22250404 75355492 9181252 637320910 700179430 343368856 609982580 819446272 657025786 417130700 869124046 29260574 635565794 960260466 88361168 62855338 937906970 272056128 691558732 38964352 156445024 972341020 952652654 209319766 866597994 310506834 8648...

output:

0

result:

ok 1 number(s): "0"

Test #22:

score: 30
Accepted
time: 1ms
memory: 3540kb

input:

3000 2
354850469 308022921 982030052 204243429 81359634 396352087 818660632 346171682 414089414 858843314 833282674 666064122 822445534 820666553 65489973 666985874 349651060 420770828 851434715 109309679 326719078 292037079 553269053 165517023 457752713 386379859 34971829 142091597 181586420 199000...

output:

1

result:

ok 1 number(s): "1"

Test #23:

score: 30
Accepted
time: 0ms
memory: 3784kb

input:

500 2
203412544 61851007 586535587 486968143 875369021 985875249 316089162 929955174 401867218 186579046 471528419 82273912 962932206 269786079 680174046 836866080 761653128 283496098 474840952 11671544 148873680 913438388 102086606 188883488 192992369 187379128 552781119 473926266 433670893 2121962...

output:

1

result:

ok 1 number(s): "1"

Test #24:

score: 30
Accepted
time: 1ms
memory: 3624kb

input:

3000 2
68755410 923083310 590388927 432449601 829287927 156119923 831497540 435929505 202167093 259654068 823404393 366667751 387824239 255289399 474809364 311198520 223107837 18229805 206717099 58481453 562234436 251622772 215421828 775829160 630537818 120589081 704348542 84404675 973185256 1896456...

output:

1

result:

ok 1 number(s): "1"

Test #25:

score: 30
Accepted
time: 0ms
memory: 3744kb

input:

500 2
398516650 938858974 267530994 514280855 599861463 585730873 708929375 981837909 821418825 964204380 702106030 787046858 954738784 93005000 423786944 361707689 817985175 354667355 531023809 937831653 751111899 882967067 829961299 869476136 196715580 479362190 377271787 67536934 231224157 225451...

output:

1

result:

ok 1 number(s): "1"

Subtask #4:

score: 0
Wrong Answer

Dependency #3:

100%
Accepted

Test #26:

score: 0
Wrong Answer
time: 1ms
memory: 3836kb

input:

3000 3000
533153071 239070382 708344889 674533552 483802927 296899924 329086 80884554 732953835 62102396 940008178 492401942 781501549 216632603 706953056 20746870 92094171 384067282 621705878 480022796 695971496 146935760 479123274 831630107 278433192 534994849 102542881 278470399 551357803 6073189...

output:

1500

result:

wrong answer 1st numbers differ - expected: '1496', found: '1500'

Subtask #5:

score: 0
Skipped

Dependency #1:

0%