| Show all threads Hide all threads Show all messages Hide all messages |
| wa2 | 👑TIMOFEY👑`~ | 1775. Space Bowling | 10 Jul 2024 09:57 | 1 |
wa2 👑TIMOFEY👑`~ 10 Jul 2024 09:57 you forgot about something |
| Test number 7 | nightwalker | 1027. D++ Again | 9 Jul 2024 04:23 | 10 |
It is something wrong. Can somebody help me? I have completed this problem. Test #7 is single '('. Thank you VERYYYYYY MUUUCH! I solved this problem because of yoy =) :-) :=) thanks a lot. After this test I got accepted My program passed this test '('. And also my program passed all the testes I've found here... but result is still WA7. I don't know why. Can someone help me? I've got an AC! Probably, my mystake was in wrong work with carrage return symbols.. Thankkkkkkkkkkkkkkkkkk a llotttttttt Exactly! Thank you very much. For all other users experiencing test#7 WA: Test your program exactly with this data: (<EOF> Got AC now thanks for test :) Probably, test 7 is 'a(' Add some letter before '(' |
| WA14 | Maydell Anton | 1691. Algorithm Complexity | 9 Jul 2024 03:20 | 1 |
WA14 Maydell Anton 9 Jul 2024 03:20 5 7 3 4 1 2 2 1 2 4 3 1 3 5 5 5 5 4 Answer: 0 |
| New test suggestion | undef | 1623. Fractal Labyrinth | 9 Jul 2024 00:23 | 2 |
I have two different solutions which handle this test very differently: 20 5 24 0.0 - 1.0 0.1 - 1.0 0.2 - 1.1 0.3 - 1.2 0.4 - 1.3 0.5 - 1.4 0.6 - 1.5 0.7 - 1.6 0.8 - 1.7 0.9 - 1.8 0.10 - 1.9 0.11 - 1.10 0.12 - 1.11 0.13 - 1.12 0.14 - 1.13 0.15 - 1.14 0.16 - 1.15 0.17 - 1.16 0.18 - 1.17 0.18 - 2.0 0.18 - 3.0 0.18 - 4.0 0.18 - 5.0 0.19 - 1.18 0 19 One of them might be even close to TLE, but both my solutions accepted here with time 0.015 s, which makes me think there is no such test in the list of tests. I think this test should be added... Your test has been added. 1 author lost AC after rejudge. Thanks and feel free to send more tests to support email. |
| Why AC with Python? | coolboy19521 | 1012. K-based Numbers. Version 2 | 8 Jul 2024 01:19 | 2 |
I don't understand, why did the authors create such a question that gets AC only if solved with Python or Java. The problem was created back in the days when only available languages in the judge were Pascal, C and C++. |
| Not correct | Berezhko German | 1362. Classmates 2 | 8 Jul 2024 01:05 | 3 |
"...Она сразу же позвонила своей начальнице, затем своей подруге Лене, находящейся у неё в подчинении, потом Кате и Маше...". In my solution she can call friends, and then her boss. And solution, when she at first call the boss and then friends, get WA4. Yeah, it sucks that the statement is not reliable. Added a hint to the statement. |
| Typo in statement | coolboy19521 | 1362. Classmates 2 | 8 Jul 2024 00:43 | 2 |
|
| Hashing? | coolboy19521 | 1221. Malevich Strikes Back! | 7 Jul 2024 12:54 | 2 |
I don't understand what dp has to do with this problem. I solved it using string hashing. If you're curious, I mean hashing the row or the column. I didn't hash the both and it is AC. 2D hashing is not needed in this problem (I'm not sure if it exists). |
| What's in the 2nd test? | Glumaks | 2066. Simple Expression | 6 Jul 2024 19:45 | 3 |
#include <stdio.h> int main(void) { int a, b, c, max, min, med; scanf("%d %d %d", &a, &b, &c); max = a >= b && a >= c? a: b >= a && b >= c? b: c; min = a <= b && a <= c? a: b <= a && b <= c? b: c; med = a + b + c - min - max; if (med == 0) printf("%d", - max); else printf("%d", min - max * med); return 0; } I'd assume something like 0 1 2 |
| Why nothing mentioned buying twice? | coolboy19521 | 1326. Bottle Taps | 6 Jul 2024 19:09 | 2 |
I solved the problem the way I understood it but then when staring at the discussion page I discovered that buying the same tap twice is allowed. Nevermind :) Just a slight change in the code fixed everything. Nice problem. Edited by author 06.07.2024 19:09 |
| Hint for tles | coolboy19521 | 1427. SMS | 6 Jul 2024 13:10 | 1 |
Binary search the optimal value when only latin and spaces. You don't have to iterate through all m. Calculate transition for n in O(1) time. Overall complexity should be something like O(|s|log(m)). |
| BINPOW gives TLE | coolboy19521 | 1495. One-two, One-two 2 | 5 Jul 2024 17:53 | 1 |
If your code needs to calculate 10^i, then don't use BINPOW. Just precalculate. It wasted my time a little bit. |
| I solved it without dp. | coolboy19521 | 1117. Hierarchy | 5 Jul 2024 02:05 | 1 |
The solution is actually really easy when not dp. It is just the count of numbers that are divisible by (1ll<<i) and only by (1ll<<i) times 2(i-1). If you just draw 1-15 tree and try to solve for 1 15 you'll observe it. You just have to make these checks (i'm too lazy to explain it, but if you want just comment): for (int i = 30; i >= 1; i--) { int powerOf2 = 1ll << i; int ci = countMultiples(n, m, powerOf2); ci -= al; int r = m / powerOf2; int l = n / powerOf2; an += 2 * (i - 1) * ci; if (m % powerOf2 == 0 && (r % 2 != 0 || r == 0) && ci > 0) {// <-- These are the checks an -= (i - 1); } if (n % powerOf2 == 0 && (l % 2 != 0 || l == 0) && ci > 0) { an -= (i - 1); } al += ci; } |
| Can somebody give me some hint ? | Crusader | 1658. Sum of Digits | 4 Jul 2024 09:25 | 12 |
can you tell me for detail ? I think it's a search problem, but I got wrong . I think it's a search problem, but I got wrong . Dynamic programming, I just solve it I used DP,but I got TLE.Can you give me some details? Many thanks!! Use DP[901][8101],and the time is 900*8100*9,then you will not get TLE again. Edited by author 04.11.2008 14:27 I still got TLE,may i have a look at your code? my email address is:xiongsenlin2006@126.com. Thank you !! Edited by author 04.11.2008 16:22 Edited by author 04.11.2008 16:22 My code wrong at test #2. Can anybody now what test 2 is? Thanks Maybe you output answers with more that 100 digits... I know why i got TLE,I should have computed all the answers preivously. but there are 1e4 test cases. |
| [updated task] WA#2 sample tests or hints appreciated | alex_online | 1013. K-based Numbers. Version 3 | 3 Jul 2024 18:35 | 6 |
Hello, could you check if my test is correct? 4 10 1234 Answer: 222 (??) ~Thanks Why the answer is 191? As far as I understand, we need to count numbers from 1000 to 1234 without 00. There are only 12 of them: 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1100 1200 So 1234 - 1000 - 12 = 222. Where am I wrong? Thanks. > As far as I understand, we need to count numbers from 1000 to 1234 without 00 No. We need to count numbers from 1000 to 9999 without 00. Result - 8829 - we should divide by 1234 - 7, remainder 191. Remainder is the answer. So answer is 191. Edited by author 26.12.2016 15:11 My answer is also 191, but i got WA#3 |
| C++ Solution with no loops | Maksim | 1068. Sum | 3 Jul 2024 16:30 | 1 |
Maybe someone will need it. You can read more about it here: https://en.wikipedia.org/wiki/Arithmetic_progression #include <iostream> using namespace std; int main() { int a; cin >> a; int result = a > 0 ? a * (a + 1) / 2 : - a * (a - 1) / 2 + 1; cout << result; } Edited by author 03.07.2024 16:31 Edited by author 03.07.2024 16:31 |
| Hint for WA#7 | Keworker `~ | 1489. Points on a Parallelepiped | 3 Jul 2024 13:57 | 1 |
I had WA#7 and it was passed (and problem become accepted) when I fixed the case where the Y-cord of one of points was equal to B + C. So test 7 is something like that: A B C X1 B + C X2 Y2 Good luck! |
| Clarification WA#2 | ACSpeed - Nguyen Khac Tung | 1303. Minimal Coverage | 3 Jul 2024 11:05 | 6 |
"covers segment [0, M] completely" means: 0 1 2 3 does not cover [0,3] completely 0 1 1 3 covers [0,3] completely Thank you for your tests! Maybe you printed “No solution[space]” instead of “No solution” like me :)) This is so dumb. But thanks for clarification. I don't understand why they did not mention it in problem statement. Or I might have not noticed it. |
| Add test (2 admins) | Keworker `~ | 1024. Permutations | 2 Jul 2024 21:44 | 3 |
Hello! I found test, that crash some AC solutions (solution of my friend with self-created GCD func), please, add it to the system. Here it is: 995 805 447 327 900 484 349 760 548 525 419 613 338 81 374 242 744 813 906 965 120 983 420 720 459 477 218 444 527 209 598 758 929 635 740 312 128 318 162 390 244 297 424 283 931 794 239 211 480 880 768 245 554 276 615 543 549 202 203 98 380 681 57 648 119 646 134 691 551 727 777 452 745 164 345 989 680 261 20 132 404 44 850 624 360 288 970 708 847 396 837 405 31 756 243 90 762 686 793 236 284 496 144 634 889 476 293 887 589 914 301 145 427 359 819 246 810 967 12 885 913 351 657 339 95 875 882 715 709 352 280 214 5 309 884 463 988 521 552 733 271 385 40 667 35 905 198 451 607 46 479 636 232 18 911 488 121 147 651 146 112 544 343 36 873 279 684 233 166 771 815 212 537 639 158 953 577 649 513 719 556 443 174 832 199 425 937 623 743 725 248 21 422 796 858 1 603 326 39 303 313 559 415 241 55 516 892 854 933 465 498 391 663 482 378 511 948 193 362 647 186 275 481 738 703 487 578 226 739 41 958 564 759 331 611 175 806 23 987 438 347 807 9 210 896 510 76 800 776 532 786 764 573 85 747 653 750 859 876 138 723 462 32 161 389 219 658 625 93 266 60 928 220 507 529 118 512 171 311 446 868 306 904 106 133 985 435 774 377 116 114 583 601 560 332 322 329 871 493 500 877 614 637 204 140 61 401 666 470 961 376 898 817 626 72 24 910 42 59 328 113 205 978 80 70 491 612 670 272 888 256 73 787 917 492 254 748 943 28 384 361 671 433 981 172 710 818 992 620 66 178 821 952 802 382 659 167 94 565 769 440 53 822 675 669 641 475 947 909 643 829 49 872 763 503 672 782 976 553 935 461 991 92 130 449 631 428 124 599 897 531 597 761 489 594 687 661 587 835 182 705 250 772 56 927 129 346 17 54 185 356 984 951 883 627 955 157 103 702 191 110 580 78 299 370 292 969 963 335 924 765 47 595 545 785 200 386 907 893 62 464 505 381 184 542 668 579 920 698 962 409 442 348 833 25 936 137 844 395 437 825 799 387 795 456 714 295 530 34 305 954 315 16 277 515 366 371 838 188 860 173 519 262 867 426 941 125 732 270 101 617 593 432 843 973 269 363 14 851 524 45 827 533 13 534 690 136 673 811 735 187 797 798 441 754 731 729 344 539 726 454 694 581 664 294 895 692 135 652 986 674 592 890 308 107 317 809 849 142 159 605 632 207 571 995 610 320 773 660 170 206 495 939 310 916 642 208 190 238 304 716 153 111 990 300 86 736 728 604 957 325 375 741 752 253 455 925 156 65 96 154 434 10 88 69 676 421 730 570 410 563 469 679 431 790 879 406 82 228 259 394 894 921 801 285 816 268 485 650 820 473 354 117 602 804 38 257 258 403 591 466 251 630 724 629 538 908 169 429 337 923 408 148 350 213 37 430 557 956 575 852 766 67 857 566 87 711 502 585 574 919 751 355 367 89 814 74 222 853 7 792 413 183 379 982 706 152 215 689 506 783 388 940 975 402 249 194 163 216 445 368 959 201 721 775 781 383 942 417 974 478 586 572 753 139 831 29 812 321 468 682 993 15 160 697 866 127 217 50 784 520 704 104 141 460 296 179 622 109 934 234 874 535 972 177 75 195 63 621 83 8 665 523 393 105 886 192 494 71 265 541 274 26 414 6 365 224 555 342 590 229 688 472 683 373 915 562 526 576 901 865 416 903 264 79 830 712 102 742 755 749 713 358 247 608 846 252 791 932 227 701 43 504 314 938 960 596 100 618 779 778 324 902 471 662 971 600 411 678 341 467 397 568 645 696 307 330 457 699 518 436 22 528 968 319 789 746 638 273 77 718 569 155 281 286 289 770 695 509 30 864 353 340 400 845 52 27 91 717 115 823 99 980 260 196 862 230 508 223 964 423 486 302 788 656 945 584 946 176 540 977 950 97 757 926 399 826 150 606 298 392 357 458 930 808 550 19 840 448 824 722 235 499 255 64 836 734 644 567 189 856 561 677 197 912 842 685 267 439 522 398 372 278 944 878 333 588 3 168 891 33 151 181 737 994 616 48 231 558 828 949 640 237 453 707 143 514 474 582 282 240 418 336 654 149 58 693 628 483 780 863 369 655 848 546 497 131 180 123 841 700 490 126 287 323 547 839 412 68 855 108 861 221 803 51 619 450 517 767 2 899 979 263 922 122 290 84 918 316 11 165 4 407 334 633 881 869 225 364 501 870 609 536 291 834 966 Edited by author 20.06.2024 13:49 This test is incorrect because the answer exceeds 10^9. |
| wa 4 | 👑TIMOFEY👑`~ | 1422. Fireflies | 2 Jul 2024 20:16 | 1 |
wa 4 👑TIMOFEY👑`~ 2 Jul 2024 20:16 |