QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#496977 | #4673. Knights of Light and Darkness | ZhangYiDe | AC ✓ | 1ms | 3708kb | C++20 | 1.6kb | 2024-07-28 17:33:15 | 2024-07-28 17:33:15 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3644kb
input:
3
output:
! -1
result:
ok impossible!
Test #2:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
4 Yes Yes
output:
? L 1 4 ? L 2 3 ! 2
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
6 No No No
output:
? L 1 6 ? L 2 5 ? L 3 4 ! 3
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
7
output:
! -1
result:
ok impossible!
Test #5:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
651
output:
! -1
result:
ok impossible!
Test #6:
score: 0
Accepted
time: 1ms
memory: 3544kb
input:
407
output:
! -1
result:
ok impossible!
Test #7:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
111
output:
! -1
result:
ok impossible!
Test #8:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
629
output:
! -1
result:
ok impossible!
Test #9:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
949
output:
! -1
result:
ok impossible!
Test #10:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
409
output:
! -1
result:
ok impossible!
Test #11:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
833
output:
! -1
result:
ok impossible!
Test #12:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
749
output:
! -1
result:
ok impossible!
Test #13:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
595
output:
! -1
result:
ok impossible!
Test #14:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
365
output:
! -1
result:
ok impossible!
Test #15:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
555
output:
! -1
result:
ok impossible!
Test #16:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
92 Yes No No Yes No Yes Yes Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes Yes Yes Yes No Yes No Yes No No Yes Yes Yes Yes Yes No No No No No No Yes Yes No No No Yes Yes
output:
? L 1 92 ? L 2 91 ? L 3 90 ? L 4 89 ? L 5 88 ? L 6 87 ? L 7 86 ? L 8 85 ? L 9 84 ? L 10 83 ? L 11 82 ? L 12 81 ? L 13 80 ? L 14 79 ? L 15 78 ? L 16 77 ? L 17 76 ? L 18 75 ? L 19 74 ? L 20 73 ? L 21 72 ? L 22 71 ? L 23 70 ? L 24 69 ? L 25 68 ? L 26 67 ? L 27 66 ? L 28 65 ? L 29 64 ? L 30 63 ? L 31 62...
result:
ok
Test #17:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
705
output:
! -1
result:
ok impossible!
Test #18:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
415
output:
! -1
result:
ok impossible!
Test #19:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
381
output:
! -1
result:
ok impossible!
Test #20:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
904 Yes Yes No Yes Yes Yes No No No No No Yes No Yes No No No No No Yes No Yes Yes Yes Yes Yes Yes Yes No No No Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes No Yes Yes No No Yes No No No No No No No Yes No Yes Yes Yes Yes Yes Yes No Yes No Yes No Yes Yes Yes Yes Yes No Yes Yes No No No N...
output:
? L 1 904 ? L 2 903 ? L 3 902 ? L 4 901 ? L 5 900 ? L 6 899 ? L 7 898 ? L 8 897 ? L 9 896 ? L 10 895 ? L 11 894 ? L 12 893 ? L 13 892 ? L 14 891 ? L 15 890 ? L 16 889 ? L 17 888 ? L 18 887 ? L 19 886 ? L 20 885 ? L 21 884 ? L 22 883 ? L 23 882 ? L 24 881 ? L 25 880 ? L 26 879 ? L 27 878 ? L 28 877 ?...
result:
ok
Test #21:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
1000 No No No No Yes Yes Yes Yes No Yes No No No No Yes Yes No No Yes Yes No No No Yes Yes Yes Yes Yes Yes Yes No No No Yes Yes Yes No No No Yes No No No No Yes Yes No No Yes Yes Yes No Yes Yes No No Yes Yes No Yes No Yes Yes Yes No No No No No No Yes Yes No No No Yes Yes No No No
output:
? L 1 1000 ? L 2 999 ? L 3 998 ? L 4 997 ? L 5 996 ? L 6 995 ? L 7 994 ? L 8 993 ? L 9 992 ? L 10 991 ? L 11 990 ? L 12 989 ? L 13 988 ? L 14 987 ? L 15 986 ? L 16 985 ? L 17 984 ? L 18 983 ? L 19 982 ? L 20 981 ? L 21 980 ? L 22 979 ? L 23 978 ? L 24 977 ? L 25 976 ? L 26 975 ? L 27 974 ? L 28 973 ...
result:
ok
Test #22:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
970 No Yes No No No No No No No Yes Yes Yes No No No No Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes No Yes No Yes Yes No No Yes Yes Yes No Yes Yes No Yes No Yes Yes Yes No No Yes No Yes Yes Yes No Yes No No No No Yes No Yes Yes No Yes No Yes Yes No No No Yes No No Yes No No No Yes Yes
output:
? L 1 970 ? L 2 969 ? L 3 968 ? L 4 967 ? L 5 966 ? L 6 965 ? L 7 964 ? L 8 963 ? L 9 962 ? L 10 961 ? L 11 960 ? L 12 959 ? L 13 958 ? L 14 957 ? L 15 956 ? L 16 955 ? L 17 954 ? L 18 953 ? L 19 952 ? L 20 951 ? L 21 950 ? L 22 949 ? L 23 948 ? L 24 947 ? L 25 946 ? L 26 945 ? L 27 944 ? L 28 943 ?...
result:
ok
Test #23:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
953
output:
! -1
result:
ok impossible!
Test #24:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
180 No No No Yes No No No Yes Yes Yes No Yes Yes No No Yes No Yes Yes Yes Yes No No Yes No No Yes Yes No Yes Yes Yes Yes No No No Yes Yes Yes Yes Yes No Yes Yes No No Yes Yes Yes No No No Yes Yes No Yes No Yes Yes No Yes No Yes Yes Yes Yes Yes No No No No No Yes Yes Yes Yes No Yes Yes Yes Yes No
output:
? L 1 180 ? L 2 179 ? L 3 178 ? L 4 177 ? L 5 176 ? L 6 175 ? L 7 174 ? L 8 173 ? L 9 172 ? L 10 171 ? L 11 170 ? L 12 169 ? L 13 168 ? L 14 167 ? L 15 166 ? L 16 165 ? L 17 164 ? L 18 163 ? L 19 162 ? L 20 161 ? L 21 160 ? L 22 159 ? L 23 158 ? L 24 157 ? L 25 156 ? L 26 155 ? L 27 154 ? L 28 153 ?...
result:
ok
Test #25:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
593
output:
! -1
result:
ok impossible!
Test #26:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
496 Yes No No Yes Yes Yes Yes No No Yes Yes No No Yes No Yes Yes Yes No Yes Yes Yes No Yes Yes No Yes No No Yes No Yes No Yes Yes No Yes No No Yes Yes No Yes No Yes Yes No Yes Yes Yes No No Yes No No Yes Yes Yes No No Yes Yes Yes Yes Yes No Yes No Yes Yes Yes Yes No No No No No No No No Yes No No No...
output:
? L 1 496 ? L 2 495 ? L 3 494 ? L 4 493 ? L 5 492 ? L 6 491 ? L 7 490 ? L 8 489 ? L 9 488 ? L 10 487 ? L 11 486 ? L 12 485 ? L 13 484 ? L 14 483 ? L 15 482 ? L 16 481 ? L 17 480 ? L 18 479 ? L 19 478 ? L 20 477 ? L 21 476 ? L 22 475 ? L 23 474 ? L 24 473 ? L 25 472 ? L 26 471 ? L 27 470 ? L 28 469 ?...
result:
ok
Test #27:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
176 No Yes No No Yes Yes No No Yes Yes Yes No Yes
output:
? L 1 176 ? L 2 175 ? L 3 174 ? L 4 173 ? L 5 172 ? L 6 171 ? L 7 170 ? L 8 169 ? L 9 168 ? L 10 167 ? L 11 166 ? L 12 165 ? L 13 164 ? L 14 163 ? L 15 162 ? L 16 161 ? L 17 160 ? L 18 159 ? L 19 158 ? L 20 157 ? L 21 156 ? L 22 155 ? L 23 154 ? L 24 153 ? L 25 152 ? L 26 151 ? L 27 150 ? L 28 149 ?...
result:
ok
Test #28:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
553
output:
! -1
result:
ok impossible!
Test #29:
score: 0
Accepted
time: 1ms
memory: 3548kb
input:
186 Yes No No Yes Yes No Yes Yes No No No No No Yes No Yes Yes No No Yes Yes Yes No No Yes Yes Yes Yes No No No Yes Yes Yes Yes Yes No No Yes No Yes Yes Yes Yes Yes Yes No No Yes Yes No
output:
? L 1 186 ? L 2 185 ? L 3 184 ? L 4 183 ? L 5 182 ? L 6 181 ? L 7 180 ? L 8 179 ? L 9 178 ? L 10 177 ? L 11 176 ? L 12 175 ? L 13 174 ? L 14 173 ? L 15 172 ? L 16 171 ? L 17 170 ? L 18 169 ? L 19 168 ? L 20 167 ? L 21 166 ? L 22 165 ? L 23 164 ? L 24 163 ? L 25 162 ? L 26 161 ? L 27 160 ? L 28 159 ?...
result:
ok
Test #30:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
469
output:
! -1
result:
ok impossible!
Test #31:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
566 No No Yes No Yes No No Yes No Yes No No Yes No No Yes No No No No No No Yes Yes No No No No No Yes Yes Yes No No No No No No Yes No Yes Yes No Yes Yes Yes No No No Yes Yes No No No Yes Yes No No Yes No Yes Yes No No Yes Yes Yes No Yes No No No Yes Yes No No Yes No No No Yes
output:
? L 1 566 ? L 2 565 ? L 3 564 ? L 4 563 ? L 5 562 ? L 6 561 ? L 7 560 ? L 8 559 ? L 9 558 ? L 10 557 ? L 11 556 ? L 12 555 ? L 13 554 ? L 14 553 ? L 15 552 ? L 16 551 ? L 17 550 ? L 18 549 ? L 19 548 ? L 20 547 ? L 21 546 ? L 22 545 ? L 23 544 ? L 24 543 ? L 25 542 ? L 26 541 ? L 27 540 ? L 28 539 ?...
result:
ok
Test #32:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
974 Yes No Yes Yes Yes Yes No No No Yes No No
output:
? L 1 974 ? L 2 973 ? L 3 972 ? L 4 971 ? L 5 970 ? L 6 969 ? L 7 968 ? L 8 967 ? L 9 966 ? L 10 965 ? L 11 964 ? L 12 963 ? L 13 962 ? L 14 961 ? L 15 960 ? L 16 959 ? L 17 958 ? L 18 957 ? L 19 956 ? L 20 955 ? L 21 954 ? L 22 953 ? L 23 952 ? L 24 951 ? L 25 950 ? L 26 949 ? L 27 948 ? L 28 947 ?...
result:
ok
Test #33:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
845
output:
! -1
result:
ok impossible!
Test #34:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
293
output:
! -1
result:
ok impossible!
Test #35:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
588 No Yes Yes Yes No Yes Yes No No No Yes No Yes No Yes No Yes No Yes Yes Yes No Yes Yes No Yes No No No No No No Yes Yes Yes Yes Yes No No Yes Yes Yes No Yes No No No Yes No Yes Yes Yes No No Yes Yes No Yes Yes No No No Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No No Yes No Yes No Y...
output:
? L 1 588 ? L 2 587 ? L 3 586 ? L 4 585 ? L 5 584 ? L 6 583 ? L 7 582 ? L 8 581 ? L 9 580 ? L 10 579 ? L 11 578 ? L 12 577 ? L 13 576 ? L 14 575 ? L 15 574 ? L 16 573 ? L 17 572 ? L 18 571 ? L 19 570 ? L 20 569 ? L 21 568 ? L 22 567 ? L 23 566 ? L 24 565 ? L 25 564 ? L 26 563 ? L 27 562 ? L 28 561 ?...
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
933
output:
! -1
result:
ok impossible!
Test #37:
score: 0
Accepted
time: 1ms
memory: 3692kb
input:
666 Yes Yes Yes No No Yes Yes No No No No No Yes Yes Yes No No No No Yes Yes Yes No Yes Yes No No No Yes No Yes No Yes No Yes Yes No Yes Yes No No No Yes No Yes Yes Yes Yes Yes Yes No Yes No
output:
? L 1 666 ? L 2 665 ? L 3 664 ? L 4 663 ? L 5 662 ? L 6 661 ? L 7 660 ? L 8 659 ? L 9 658 ? L 10 657 ? L 11 656 ? L 12 655 ? L 13 654 ? L 14 653 ? L 15 652 ? L 16 651 ? L 17 650 ? L 18 649 ? L 19 648 ? L 20 647 ? L 21 646 ? L 22 645 ? L 23 644 ? L 24 643 ? L 25 642 ? L 26 641 ? L 27 640 ? L 28 639 ?...
result:
ok
Test #38:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
299
output:
! -1
result:
ok impossible!
Test #39:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
549
output:
! -1
result:
ok impossible!
Test #40:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
709
output:
! -1
result:
ok impossible!
Test #41:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
939
output:
! -1
result:
ok impossible!
Test #42:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
461
output:
! -1
result:
ok impossible!
Test #43:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
33
output:
! -1
result:
ok impossible!
Test #44:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
804 Yes No No Yes Yes No No No Yes Yes Yes Yes No Yes Yes No No No No No No Yes No Yes Yes No No Yes No Yes Yes Yes Yes Yes No No Yes No Yes Yes Yes Yes Yes No No No Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No No Yes Yes No No No Yes Yes Yes Yes No No No Yes Yes Yes Y...
output:
? L 1 804 ? L 2 803 ? L 3 802 ? L 4 801 ? L 5 800 ? L 6 799 ? L 7 798 ? L 8 797 ? L 9 796 ? L 10 795 ? L 11 794 ? L 12 793 ? L 13 792 ? L 14 791 ? L 15 790 ? L 16 789 ? L 17 788 ? L 18 787 ? L 19 786 ? L 20 785 ? L 21 784 ? L 22 783 ? L 23 782 ? L 24 781 ? L 25 780 ? L 26 779 ? L 27 778 ? L 28 777 ?...
result:
ok
Test #45:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
536 Yes Yes Yes Yes No Yes No Yes No Yes No No Yes No Yes Yes No Yes Yes Yes No Yes No Yes Yes No Yes No Yes Yes Yes Yes Yes No Yes Yes No No No Yes Yes No Yes Yes Yes No No No Yes No No No No No Yes No Yes Yes Yes Yes Yes No No Yes No Yes Yes No Yes Yes No Yes No No Yes No Yes No Yes No Yes Yes Yes...
output:
? L 1 536 ? L 2 535 ? L 3 534 ? L 4 533 ? L 5 532 ? L 6 531 ? L 7 530 ? L 8 529 ? L 9 528 ? L 10 527 ? L 11 526 ? L 12 525 ? L 13 524 ? L 14 523 ? L 15 522 ? L 16 521 ? L 17 520 ? L 18 519 ? L 19 518 ? L 20 517 ? L 21 516 ? L 22 515 ? L 23 514 ? L 24 513 ? L 25 512 ? L 26 511 ? L 27 510 ? L 28 509 ?...
result:
ok
Test #46:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
797
output:
! -1
result:
ok impossible!
Test #47:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
486 Yes No Yes Yes No Yes No Yes No No No No Yes No No Yes Yes No No Yes Yes No Yes No Yes Yes Yes No No No No No No Yes Yes Yes Yes Yes No No No Yes No Yes Yes Yes Yes No No No No Yes No Yes Yes Yes No Yes Yes No Yes No Yes No Yes No Yes Yes Yes No No No No No Yes Yes No Yes No No Yes No Yes No No ...
output:
? L 1 486 ? L 2 485 ? L 3 484 ? L 4 483 ? L 5 482 ? L 6 481 ? L 7 480 ? L 8 479 ? L 9 478 ? L 10 477 ? L 11 476 ? L 12 475 ? L 13 474 ? L 14 473 ? L 15 472 ? L 16 471 ? L 17 470 ? L 18 469 ? L 19 468 ? L 20 467 ? L 21 466 ? L 22 465 ? L 23 464 ? L 24 463 ? L 25 462 ? L 26 461 ? L 27 460 ? L 28 459 ?...
result:
ok
Test #48:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
281
output:
! -1
result:
ok impossible!
Test #49:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
68 Yes Yes No Yes Yes Yes Yes No Yes Yes No Yes No No Yes Yes No No Yes Yes No Yes No No No Yes Yes Yes Yes Yes Yes No Yes Yes
output:
? L 1 68 ? L 2 67 ? L 3 66 ? L 4 65 ? L 5 64 ? L 6 63 ? L 7 62 ? L 8 61 ? L 9 60 ? L 10 59 ? L 11 58 ? L 12 57 ? L 13 56 ? L 14 55 ? L 15 54 ? L 16 53 ? L 17 52 ? L 18 51 ? L 19 50 ? L 20 49 ? L 21 48 ? L 22 47 ? L 23 46 ? L 24 45 ? L 25 44 ? L 26 43 ? L 27 42 ? L 28 41 ? L 29 40 ? L 30 39 ? L 31 38...
result:
ok
Test #50:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
710 No No No Yes No No No No No No Yes Yes No No Yes Yes No No Yes Yes No Yes Yes No No Yes No No No No Yes No Yes No Yes Yes Yes No
output:
? L 1 710 ? L 2 709 ? L 3 708 ? L 4 707 ? L 5 706 ? L 6 705 ? L 7 704 ? L 8 703 ? L 9 702 ? L 10 701 ? L 11 700 ? L 12 699 ? L 13 698 ? L 14 697 ? L 15 696 ? L 16 695 ? L 17 694 ? L 18 693 ? L 19 692 ? L 20 691 ? L 21 690 ? L 22 689 ? L 23 688 ? L 24 687 ? L 25 686 ? L 26 685 ? L 27 684 ? L 28 683 ?...
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
847
output:
! -1
result:
ok impossible!
Test #52:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
8 Yes Yes No No
output:
? L 1 8 ? L 2 7 ? L 3 6 ? L 4 5 ! 4
result:
ok
Test #53:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
362 Yes No No No No No Yes Yes Yes Yes No No Yes No No No No No Yes No No Yes Yes Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes No Yes Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes No Yes No Yes Yes No Yes Yes No Yes Yes No Yes No No No
output:
? L 1 362 ? L 2 361 ? L 3 360 ? L 4 359 ? L 5 358 ? L 6 357 ? L 7 356 ? L 8 355 ? L 9 354 ? L 10 353 ? L 11 352 ? L 12 351 ? L 13 350 ? L 14 349 ? L 15 348 ? L 16 347 ? L 17 346 ? L 18 345 ? L 19 344 ? L 20 343 ? L 21 342 ? L 22 341 ? L 23 340 ? L 24 339 ? L 25 338 ? L 26 337 ? L 27 336 ? L 28 335 ?...
result:
ok
Test #54:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
446 Yes Yes Yes Yes No No Yes No No Yes Yes No No No Yes Yes No No Yes Yes No Yes No Yes No No No No Yes No No Yes No No Yes No No Yes Yes No Yes Yes No No No No No Yes Yes Yes Yes No Yes No No No No No Yes No Yes Yes No
output:
? L 1 446 ? L 2 445 ? L 3 444 ? L 4 443 ? L 5 442 ? L 6 441 ? L 7 440 ? L 8 439 ? L 9 438 ? L 10 437 ? L 11 436 ? L 12 435 ? L 13 434 ? L 14 433 ? L 15 432 ? L 16 431 ? L 17 430 ? L 18 429 ? L 19 428 ? L 20 427 ? L 21 426 ? L 22 425 ? L 23 424 ? L 24 423 ? L 25 422 ? L 26 421 ? L 27 420 ? L 28 419 ?...
result:
ok
Test #55:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
331
output:
! -1
result:
ok impossible!
Test #56:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
931
output:
! -1
result:
ok impossible!
Test #57:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
197
output:
! -1
result:
ok impossible!
Test #58:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
585
output:
! -1
result:
ok impossible!
Test #59:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
500 No No Yes No Yes Yes No Yes No No Yes Yes Yes Yes Yes No Yes Yes Yes Yes No No Yes No No Yes Yes Yes Yes No No Yes No Yes No Yes Yes No Yes Yes No No No Yes No Yes No Yes No No Yes Yes Yes Yes Yes Yes Yes No No No Yes No No Yes No Yes No Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes No No No No Yes...
output:
? L 1 500 ? L 2 499 ? L 3 498 ? L 4 497 ? L 5 496 ? L 6 495 ? L 7 494 ? L 8 493 ? L 9 492 ? L 10 491 ? L 11 490 ? L 12 489 ? L 13 488 ? L 14 487 ? L 15 486 ? L 16 485 ? L 17 484 ? L 18 483 ? L 19 482 ? L 20 481 ? L 21 480 ? L 22 479 ? L 23 478 ? L 24 477 ? L 25 476 ? L 26 475 ? L 27 474 ? L 28 473 ?...
result:
ok
Test #60:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
546 Yes No Yes No No No No No No Yes Yes Yes Yes Yes No Yes No No Yes No Yes Yes Yes No No Yes Yes Yes No No No Yes Yes Yes No No Yes Yes Yes Yes Yes No No Yes No Yes No No Yes No No Yes
output:
? L 1 546 ? L 2 545 ? L 3 544 ? L 4 543 ? L 5 542 ? L 6 541 ? L 7 540 ? L 8 539 ? L 9 538 ? L 10 537 ? L 11 536 ? L 12 535 ? L 13 534 ? L 14 533 ? L 15 532 ? L 16 531 ? L 17 530 ? L 18 529 ? L 19 528 ? L 20 527 ? L 21 526 ? L 22 525 ? L 23 524 ? L 24 523 ? L 25 522 ? L 26 521 ? L 27 520 ? L 28 519 ?...
result:
ok
Test #61:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
347
output:
! -1
result:
ok impossible!
Test #62:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
163
output:
! -1
result:
ok impossible!
Test #63:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
873
output:
! -1
result:
ok impossible!
Test #64:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
327
output:
! -1
result:
ok impossible!
Test #65:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
531
output:
! -1
result:
ok impossible!
Test #66:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
204 No No No Yes No No No No No No Yes Yes No Yes No No Yes No Yes Yes No No No Yes No No No No Yes No No Yes Yes No No Yes No Yes Yes No Yes Yes No No Yes No No No Yes No Yes No Yes No No Yes Yes Yes Yes Yes Yes No No No No Yes Yes No No No Yes Yes Yes Yes Yes No Yes No Yes No Yes Yes No No Yes No ...
output:
? L 1 204 ? L 2 203 ? L 3 202 ? L 4 201 ? L 5 200 ? L 6 199 ? L 7 198 ? L 8 197 ? L 9 196 ? L 10 195 ? L 11 194 ? L 12 193 ? L 13 192 ? L 14 191 ? L 15 190 ? L 16 189 ? L 17 188 ? L 18 187 ? L 19 186 ? L 20 185 ? L 21 184 ? L 22 183 ? L 23 182 ? L 24 181 ? L 25 180 ? L 26 179 ? L 27 178 ? L 28 177 ?...
result:
ok
Test #67:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
107
output:
! -1
result:
ok impossible!
Test #68:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
431
output:
! -1
result:
ok impossible!
Test #69:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
19
output:
! -1
result:
ok impossible!
Test #70:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
582 Yes No No No No No Yes No Yes Yes No No Yes No No Yes Yes Yes Yes No Yes Yes Yes No Yes Yes No Yes No Yes No Yes Yes Yes No No No Yes Yes No Yes Yes No No Yes Yes No Yes Yes No Yes Yes No Yes No Yes No Yes Yes Yes No Yes No Yes No No Yes No Yes No No Yes No Yes No Yes Yes Yes No Yes Yes Yes No Y...
output:
? L 1 582 ? L 2 581 ? L 3 580 ? L 4 579 ? L 5 578 ? L 6 577 ? L 7 576 ? L 8 575 ? L 9 574 ? L 10 573 ? L 11 572 ? L 12 571 ? L 13 570 ? L 14 569 ? L 15 568 ? L 16 567 ? L 17 566 ? L 18 565 ? L 19 564 ? L 20 563 ? L 21 562 ? L 22 561 ? L 23 560 ? L 24 559 ? L 25 558 ? L 26 557 ? L 27 556 ? L 28 555 ?...
result:
ok
Test #71:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
335
output:
! -1
result:
ok impossible!
Test #72:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
464 No No Yes No No Yes No No Yes No Yes Yes No No Yes No No No Yes No Yes No Yes Yes Yes Yes No No No Yes Yes Yes No No Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes No No Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes
output:
? L 1 464 ? L 2 463 ? L 3 462 ? L 4 461 ? L 5 460 ? L 6 459 ? L 7 458 ? L 8 457 ? L 9 456 ? L 10 455 ? L 11 454 ? L 12 453 ? L 13 452 ? L 14 451 ? L 15 450 ? L 16 449 ? L 17 448 ? L 18 447 ? L 19 446 ? L 20 445 ? L 21 444 ? L 22 443 ? L 23 442 ? L 24 441 ? L 25 440 ? L 26 439 ? L 27 438 ? L 28 437 ?...
result:
ok
Test #73:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
348 No No No No Yes No No No No No No Yes No Yes No No No Yes No No Yes No Yes Yes Yes Yes No No Yes No Yes Yes No Yes Yes No Yes Yes Yes Yes No Yes No Yes No Yes Yes No No Yes No No Yes Yes No No Yes No Yes Yes No Yes No Yes Yes No No Yes Yes Yes Yes Yes No No Yes No No No Yes
output:
? L 1 348 ? L 2 347 ? L 3 346 ? L 4 345 ? L 5 344 ? L 6 343 ? L 7 342 ? L 8 341 ? L 9 340 ? L 10 339 ? L 11 338 ? L 12 337 ? L 13 336 ? L 14 335 ? L 15 334 ? L 16 333 ? L 17 332 ? L 18 331 ? L 19 330 ? L 20 329 ? L 21 328 ? L 22 327 ? L 23 326 ? L 24 325 ? L 25 324 ? L 26 323 ? L 27 322 ? L 28 321 ?...
result:
ok
Test #74:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
13
output:
! -1
result:
ok impossible!
Test #75:
score: 0
Accepted
time: 1ms
memory: 3548kb
input:
780 Yes No Yes Yes Yes Yes No Yes Yes No Yes Yes Yes Yes Yes No Yes Yes No Yes No No Yes Yes No Yes Yes No Yes Yes No Yes No No No No No Yes No No No Yes Yes No Yes Yes Yes Yes Yes No Yes No No No No Yes Yes Yes Yes No Yes No No Yes Yes No No No Yes Yes Yes Yes No Yes Yes No Yes No No Yes Yes
output:
? L 1 780 ? L 2 779 ? L 3 778 ? L 4 777 ? L 5 776 ? L 6 775 ? L 7 774 ? L 8 773 ? L 9 772 ? L 10 771 ? L 11 770 ? L 12 769 ? L 13 768 ? L 14 767 ? L 15 766 ? L 16 765 ? L 17 764 ? L 18 763 ? L 19 762 ? L 20 761 ? L 21 760 ? L 22 759 ? L 23 758 ? L 24 757 ? L 25 756 ? L 26 755 ? L 27 754 ? L 28 753 ?...
result:
ok
Test #76:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
49
output:
! -1
result:
ok impossible!
Test #77:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
669
output:
! -1
result:
ok impossible!
Test #78:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
877
output:
! -1
result:
ok impossible!
Test #79:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
470 Yes No Yes Yes No Yes No No Yes Yes Yes No No Yes No No No Yes No No No Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No Yes No Yes No Yes Yes Yes Yes No No Yes Yes No No No Yes Yes No Yes No No No No Yes No No Yes No Yes Yes No Yes Yes No No No No No No Yes Yes No No No No No Yes Yes
output:
? L 1 470 ? L 2 469 ? L 3 468 ? L 4 467 ? L 5 466 ? L 6 465 ? L 7 464 ? L 8 463 ? L 9 462 ? L 10 461 ? L 11 460 ? L 12 459 ? L 13 458 ? L 14 457 ? L 15 456 ? L 16 455 ? L 17 454 ? L 18 453 ? L 19 452 ? L 20 451 ? L 21 450 ? L 22 449 ? L 23 448 ? L 24 447 ? L 25 446 ? L 26 445 ? L 27 444 ? L 28 443 ?...
result:
ok
Test #80:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
849
output:
! -1
result:
ok impossible!
Test #81:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
613
output:
! -1
result:
ok impossible!
Test #82:
score: 0
Accepted
time: 1ms
memory: 3548kb
input:
614 No Yes Yes No Yes Yes No No Yes Yes No Yes Yes No No No Yes No Yes No Yes No Yes Yes Yes Yes Yes Yes Yes No Yes Yes No Yes Yes No No No No No No Yes Yes No Yes No No No No Yes Yes Yes No No No Yes No Yes No No No No No No No No
output:
? L 1 614 ? L 2 613 ? L 3 612 ? L 4 611 ? L 5 610 ? L 6 609 ? L 7 608 ? L 8 607 ? L 9 606 ? L 10 605 ? L 11 604 ? L 12 603 ? L 13 602 ? L 14 601 ? L 15 600 ? L 16 599 ? L 17 598 ? L 18 597 ? L 19 596 ? L 20 595 ? L 21 594 ? L 22 593 ? L 23 592 ? L 24 591 ? L 25 590 ? L 26 589 ? L 27 588 ? L 28 587 ?...
result:
ok
Test #83:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
209
output:
! -1
result:
ok impossible!
Test #84:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
44 Yes No No No Yes No No No No No No No Yes Yes No Yes Yes Yes Yes No Yes Yes
output:
? L 1 44 ? L 2 43 ? L 3 42 ? L 4 41 ? L 5 40 ? L 6 39 ? L 7 38 ? L 8 37 ? L 9 36 ? L 10 35 ? L 11 34 ? L 12 33 ? L 13 32 ? L 14 31 ? L 15 30 ? L 16 29 ? L 17 28 ? L 18 27 ? L 19 26 ? L 20 25 ? L 21 24 ? L 22 23 ! 22
result:
ok
Test #85:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
876 Yes Yes Yes Yes No No Yes Yes Yes No No No Yes No Yes No No No No Yes No Yes No No No No No No No No Yes No No Yes Yes No No Yes Yes No Yes No Yes Yes No Yes No No No No Yes No No Yes No No No No Yes No No Yes No Yes Yes Yes Yes No Yes No Yes Yes No Yes Yes No No No Yes Yes No Yes No No No Yes N...
output:
? L 1 876 ? L 2 875 ? L 3 874 ? L 4 873 ? L 5 872 ? L 6 871 ? L 7 870 ? L 8 869 ? L 9 868 ? L 10 867 ? L 11 866 ? L 12 865 ? L 13 864 ? L 14 863 ? L 15 862 ? L 16 861 ? L 17 860 ? L 18 859 ? L 19 858 ? L 20 857 ? L 21 856 ? L 22 855 ? L 23 854 ? L 24 853 ? L 25 852 ? L 26 851 ? L 27 850 ? L 28 849 ?...
result:
ok
Test #86:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
938 No No No Yes No Yes No No No No Yes No No Yes No Yes No No No No No Yes Yes Yes No No No No No Yes No Yes No No Yes No No Yes Yes No No No No Yes Yes No Yes Yes Yes Yes No No No Yes No Yes No Yes No Yes Yes Yes No Yes No No Yes No Yes Yes No Yes No No
output:
? L 1 938 ? L 2 937 ? L 3 936 ? L 4 935 ? L 5 934 ? L 6 933 ? L 7 932 ? L 8 931 ? L 9 930 ? L 10 929 ? L 11 928 ? L 12 927 ? L 13 926 ? L 14 925 ? L 15 924 ? L 16 923 ? L 17 922 ? L 18 921 ? L 19 920 ? L 20 919 ? L 21 918 ? L 22 917 ? L 23 916 ? L 24 915 ? L 25 914 ? L 26 913 ? L 27 912 ? L 28 911 ?...
result:
ok
Test #87:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
551
output:
! -1
result:
ok impossible!
Test #88:
score: 0
Accepted
time: 1ms
memory: 3544kb
input:
897
output:
! -1
result:
ok impossible!
Test #89:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
572 Yes No Yes Yes No No Yes Yes No No Yes No No Yes No No Yes Yes Yes No Yes Yes Yes Yes Yes Yes No No No Yes Yes Yes No Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes No No No Yes No No Yes Yes No Yes Yes No No Yes No No No Yes No Yes No No No Yes No No Yes Yes No Yes Yes No No No No Yes No Yes No...
output:
? L 1 572 ? L 2 571 ? L 3 570 ? L 4 569 ? L 5 568 ? L 6 567 ? L 7 566 ? L 8 565 ? L 9 564 ? L 10 563 ? L 11 562 ? L 12 561 ? L 13 560 ? L 14 559 ? L 15 558 ? L 16 557 ? L 17 556 ? L 18 555 ? L 19 554 ? L 20 553 ? L 21 552 ? L 22 551 ? L 23 550 ? L 24 549 ? L 25 548 ? L 26 547 ? L 27 546 ? L 28 545 ?...
result:
ok
Test #90:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
220 Yes Yes Yes Yes No Yes Yes No No No No No Yes Yes No No Yes Yes No Yes No No Yes Yes Yes Yes Yes No Yes Yes Yes No No Yes No No No No No Yes Yes Yes Yes No Yes Yes No Yes Yes Yes No No No Yes No Yes No Yes Yes No Yes No No No Yes Yes No
output:
? L 1 220 ? L 2 219 ? L 3 218 ? L 4 217 ? L 5 216 ? L 6 215 ? L 7 214 ? L 8 213 ? L 9 212 ? L 10 211 ? L 11 210 ? L 12 209 ? L 13 208 ? L 14 207 ? L 15 206 ? L 16 205 ? L 17 204 ? L 18 203 ? L 19 202 ? L 20 201 ? L 21 200 ? L 22 199 ? L 23 198 ? L 24 197 ? L 25 196 ? L 26 195 ? L 27 194 ? L 28 193 ?...
result:
ok
Test #91:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
52 Yes No No No Yes No No Yes No Yes Yes No Yes Yes Yes Yes Yes Yes No Yes Yes No Yes No Yes No
output:
? L 1 52 ? L 2 51 ? L 3 50 ? L 4 49 ? L 5 48 ? L 6 47 ? L 7 46 ? L 8 45 ? L 9 44 ? L 10 43 ? L 11 42 ? L 12 41 ? L 13 40 ? L 14 39 ? L 15 38 ? L 16 37 ? L 17 36 ? L 18 35 ? L 19 34 ? L 20 33 ? L 21 32 ? L 22 31 ? L 23 30 ? L 24 29 ? L 25 28 ? L 26 27 ! 26
result:
ok
Test #92:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
460 No No Yes No No Yes Yes Yes Yes No No Yes No Yes No No Yes Yes Yes No No Yes No Yes No Yes Yes Yes No No Yes Yes Yes Yes Yes Yes Yes No No No No Yes Yes Yes No Yes No Yes Yes No No No Yes Yes No Yes Yes No Yes Yes Yes No Yes No No Yes No No Yes Yes No No Yes Yes Yes No No No Yes Yes Yes Yes Yes ...
output:
? L 1 460 ? L 2 459 ? L 3 458 ? L 4 457 ? L 5 456 ? L 6 455 ? L 7 454 ? L 8 453 ? L 9 452 ? L 10 451 ? L 11 450 ? L 12 449 ? L 13 448 ? L 14 447 ? L 15 446 ? L 16 445 ? L 17 444 ? L 18 443 ? L 19 442 ? L 20 441 ? L 21 440 ? L 22 439 ? L 23 438 ? L 24 437 ? L 25 436 ? L 26 435 ? L 27 434 ? L 28 433 ?...
result:
ok
Test #93:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
952 Yes No Yes No No No No Yes Yes Yes Yes Yes No Yes No Yes Yes Yes Yes Yes No Yes No Yes No No Yes No Yes Yes Yes No Yes Yes Yes No No Yes No Yes Yes Yes Yes Yes No Yes No Yes Yes No Yes No Yes No No No Yes Yes No No Yes No Yes No No No Yes Yes Yes Yes Yes No No Yes Yes Yes Yes No No Yes No No Yes...
output:
? L 1 952 ? L 2 951 ? L 3 950 ? L 4 949 ? L 5 948 ? L 6 947 ? L 7 946 ? L 8 945 ? L 9 944 ? L 10 943 ? L 11 942 ? L 12 941 ? L 13 940 ? L 14 939 ? L 15 938 ? L 16 937 ? L 17 936 ? L 18 935 ? L 19 934 ? L 20 933 ? L 21 932 ? L 22 931 ? L 23 930 ? L 24 929 ? L 25 928 ? L 26 927 ? L 27 926 ? L 28 925 ?...
result:
ok
Test #94:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
280 Yes Yes Yes Yes Yes No No Yes Yes No Yes Yes No No No No No No No Yes No Yes Yes No No Yes No Yes Yes No Yes Yes Yes No No Yes Yes Yes No Yes No Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
output:
? L 1 280 ? L 2 279 ? L 3 278 ? L 4 277 ? L 5 276 ? L 6 275 ? L 7 274 ? L 8 273 ? L 9 272 ? L 10 271 ? L 11 270 ? L 12 269 ? L 13 268 ? L 14 267 ? L 15 266 ? L 16 265 ? L 17 264 ? L 18 263 ? L 19 262 ? L 20 261 ? L 21 260 ? L 22 259 ? L 23 258 ? L 24 257 ? L 25 256 ? L 26 255 ? L 27 254 ? L 28 253 ?...
result:
ok
Test #95:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
312 No No Yes Yes Yes No No No Yes Yes No Yes Yes No Yes No Yes No No No No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes No No Yes Yes No No No No No Yes No Yes No No No Yes Yes No Yes No No
output:
? L 1 312 ? L 2 311 ? L 3 310 ? L 4 309 ? L 5 308 ? L 6 307 ? L 7 306 ? L 8 305 ? L 9 304 ? L 10 303 ? L 11 302 ? L 12 301 ? L 13 300 ? L 14 299 ? L 15 298 ? L 16 297 ? L 17 296 ? L 18 295 ? L 19 294 ? L 20 293 ? L 21 292 ? L 22 291 ? L 23 290 ? L 24 289 ? L 25 288 ? L 26 287 ? L 27 286 ? L 28 285 ?...
result:
ok
Test #96:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
805
output:
! -1
result:
ok impossible!
Test #97:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
32 No Yes Yes No Yes Yes No Yes No No No Yes Yes No Yes Yes
output:
? L 1 32 ? L 2 31 ? L 3 30 ? L 4 29 ? L 5 28 ? L 6 27 ? L 7 26 ? L 8 25 ? L 9 24 ? L 10 23 ? L 11 22 ? L 12 21 ? L 13 20 ? L 14 19 ? L 15 18 ? L 16 17 ! 16
result:
ok
Test #98:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
545
output:
! -1
result:
ok impossible!
Test #99:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
667
output:
! -1
result:
ok impossible!
Test #100:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
443
output:
! -1
result:
ok impossible!
Test #101:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
810 No No Yes No Yes Yes Yes No No Yes No Yes Yes Yes No No Yes No No Yes Yes No Yes No No Yes No No No No No No Yes Yes Yes Yes No No No Yes No No Yes No No No Yes No No
output:
? L 1 810 ? L 2 809 ? L 3 808 ? L 4 807 ? L 5 806 ? L 6 805 ? L 7 804 ? L 8 803 ? L 9 802 ? L 10 801 ? L 11 800 ? L 12 799 ? L 13 798 ? L 14 797 ? L 15 796 ? L 16 795 ? L 17 794 ? L 18 793 ? L 19 792 ? L 20 791 ? L 21 790 ? L 22 789 ? L 23 788 ? L 24 787 ? L 25 786 ? L 26 785 ? L 27 784 ? L 28 783 ?...
result:
ok
Test #102:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
229
output:
! -1
result:
ok impossible!
Test #103:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
400 No Yes Yes No Yes Yes No Yes Yes No No No No No Yes Yes Yes No Yes No No No No No No Yes Yes Yes Yes No Yes No Yes Yes No Yes No Yes No No No No Yes Yes Yes No No No Yes No Yes No No No No No No No No No No Yes No No Yes No No Yes No Yes Yes No Yes Yes No No No Yes No Yes No Yes No Yes No No No ...
output:
? L 1 400 ? L 2 399 ? L 3 398 ? L 4 397 ? L 5 396 ? L 6 395 ? L 7 394 ? L 8 393 ? L 9 392 ? L 10 391 ? L 11 390 ? L 12 389 ? L 13 388 ? L 14 387 ? L 15 386 ? L 16 385 ? L 17 384 ? L 18 383 ? L 19 382 ? L 20 381 ? L 21 380 ? L 22 379 ? L 23 378 ? L 24 377 ? L 25 376 ? L 26 375 ? L 27 374 ? L 28 373 ?...
result:
ok
Test #104:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
672 Yes Yes No No No No No No No No Yes Yes No No Yes No No No Yes Yes No No Yes No No Yes Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes No No No Yes Yes No No No No Yes Yes No No Yes Yes No No No No No No No Yes Yes No No Yes No No No Yes Yes No Yes No Yes Yes No Yes No No Yes Yes No Yes No Yes Yes Ye...
output:
? L 1 672 ? L 2 671 ? L 3 670 ? L 4 669 ? L 5 668 ? L 6 667 ? L 7 666 ? L 8 665 ? L 9 664 ? L 10 663 ? L 11 662 ? L 12 661 ? L 13 660 ? L 14 659 ? L 15 658 ? L 16 657 ? L 17 656 ? L 18 655 ? L 19 654 ? L 20 653 ? L 21 652 ? L 22 651 ? L 23 650 ? L 24 649 ? L 25 648 ? L 26 647 ? L 27 646 ? L 28 645 ?...
result:
ok
Test #105:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
664 Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes Yes Yes No Yes Yes No No Yes No Yes Yes No No Yes Yes Yes Yes No No Yes Yes Yes No No No No No No Yes Yes No No Yes Yes Yes No Yes No Yes No Yes No No Yes No No Yes No No Yes No No Yes Yes Yes No No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes No Y...
output:
? L 1 664 ? L 2 663 ? L 3 662 ? L 4 661 ? L 5 660 ? L 6 659 ? L 7 658 ? L 8 657 ? L 9 656 ? L 10 655 ? L 11 654 ? L 12 653 ? L 13 652 ? L 14 651 ? L 15 650 ? L 16 649 ? L 17 648 ? L 18 647 ? L 19 646 ? L 20 645 ? L 21 644 ? L 22 643 ? L 23 642 ? L 24 641 ? L 25 640 ? L 26 639 ? L 27 638 ? L 28 637 ?...
result:
ok
Test #106:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
17
output:
! -1
result:
ok impossible!
Test #107:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
886 Yes Yes No Yes No No Yes No No Yes No Yes Yes No Yes No Yes No Yes No No No Yes No Yes No Yes Yes Yes Yes No Yes Yes Yes No No Yes No No No No No Yes No No No Yes No Yes Yes Yes Yes Yes Yes No No Yes Yes No No No No No Yes No No Yes No No Yes No No Yes No Yes No No Yes Yes Yes Yes No No Yes No N...
output:
? L 1 886 ? L 2 885 ? L 3 884 ? L 4 883 ? L 5 882 ? L 6 881 ? L 7 880 ? L 8 879 ? L 9 878 ? L 10 877 ? L 11 876 ? L 12 875 ? L 13 874 ? L 14 873 ? L 15 872 ? L 16 871 ? L 17 870 ? L 18 869 ? L 19 868 ? L 20 867 ? L 21 866 ? L 22 865 ? L 23 864 ? L 24 863 ? L 25 862 ? L 26 861 ? L 27 860 ? L 28 859 ?...
result:
ok
Test #108:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
758 No No Yes Yes No Yes No Yes Yes Yes Yes Yes Yes Yes No Yes No No Yes Yes Yes No No No Yes Yes No No Yes Yes Yes No Yes No No Yes No Yes No No Yes No Yes Yes Yes No Yes No No Yes Yes Yes No No No No Yes No No Yes No No No Yes No No Yes No Yes Yes Yes Yes No No No Yes Yes No No No No No Yes Yes Ye...
output:
? L 1 758 ? L 2 757 ? L 3 756 ? L 4 755 ? L 5 754 ? L 6 753 ? L 7 752 ? L 8 751 ? L 9 750 ? L 10 749 ? L 11 748 ? L 12 747 ? L 13 746 ? L 14 745 ? L 15 744 ? L 16 743 ? L 17 742 ? L 18 741 ? L 19 740 ? L 20 739 ? L 21 738 ? L 22 737 ? L 23 736 ? L 24 735 ? L 25 734 ? L 26 733 ? L 27 732 ? L 28 731 ?...
result:
ok
Test #109:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
648 No No Yes Yes No Yes Yes No Yes No No Yes Yes Yes Yes Yes Yes Yes Yes No No No No No Yes No Yes No Yes Yes Yes Yes No No Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes Yes Yes No Yes No No Yes No Yes Yes No Yes No No No Yes No Yes No No No No Yes No Yes No Yes No No No Yes No Yes No Yes Yes Yes N...
output:
? L 1 648 ? L 2 647 ? L 3 646 ? L 4 645 ? L 5 644 ? L 6 643 ? L 7 642 ? L 8 641 ? L 9 640 ? L 10 639 ? L 11 638 ? L 12 637 ? L 13 636 ? L 14 635 ? L 15 634 ? L 16 633 ? L 17 632 ? L 18 631 ? L 19 630 ? L 20 629 ? L 21 628 ? L 22 627 ? L 23 626 ? L 24 625 ? L 25 624 ? L 26 623 ? L 27 622 ? L 28 621 ?...
result:
ok
Test #110:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
413
output:
! -1
result:
ok impossible!
Test #111:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
410 No Yes No Yes Yes Yes Yes Yes Yes No No Yes No No No No Yes Yes No No Yes No No No No No No Yes Yes Yes No No Yes Yes No No Yes Yes No Yes Yes Yes Yes
output:
? L 1 410 ? L 2 409 ? L 3 408 ? L 4 407 ? L 5 406 ? L 6 405 ? L 7 404 ? L 8 403 ? L 9 402 ? L 10 401 ? L 11 400 ? L 12 399 ? L 13 398 ? L 14 397 ? L 15 396 ? L 16 395 ? L 17 394 ? L 18 393 ? L 19 392 ? L 20 391 ? L 21 390 ? L 22 389 ? L 23 388 ? L 24 387 ? L 25 386 ? L 26 385 ? L 27 384 ? L 28 383 ?...
result:
ok
Test #112:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
395
output:
! -1
result:
ok impossible!
Test #113:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
650 Yes Yes Yes Yes Yes Yes No No No No No No No No Yes Yes No No Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes Yes No No Yes No No Yes No Yes Yes No Yes Yes Yes Yes Yes Yes Yes No No No Yes Yes Yes No Yes Yes No No Yes Yes No No Yes Yes Yes No Yes Yes Yes Yes No Y...
output:
? L 1 650 ? L 2 649 ? L 3 648 ? L 4 647 ? L 5 646 ? L 6 645 ? L 7 644 ? L 8 643 ? L 9 642 ? L 10 641 ? L 11 640 ? L 12 639 ? L 13 638 ? L 14 637 ? L 15 636 ? L 16 635 ? L 17 634 ? L 18 633 ? L 19 632 ? L 20 631 ? L 21 630 ? L 22 629 ? L 23 628 ? L 24 627 ? L 25 626 ? L 26 625 ? L 27 624 ? L 28 623 ?...
result:
ok
Test #114:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
211
output:
! -1
result:
ok impossible!
Test #115:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
538 Yes Yes No No No Yes No No No Yes Yes No No No No Yes Yes Yes No No No Yes No Yes Yes Yes No Yes Yes No Yes Yes Yes Yes No No Yes No No No Yes Yes No No Yes Yes Yes Yes No No Yes Yes No No No Yes Yes No No Yes Yes No No Yes Yes No Yes No Yes No Yes Yes Yes No Yes No Yes No No No No No No No No N...
output:
? L 1 538 ? L 2 537 ? L 3 536 ? L 4 535 ? L 5 534 ? L 6 533 ? L 7 532 ? L 8 531 ? L 9 530 ? L 10 529 ? L 11 528 ? L 12 527 ? L 13 526 ? L 14 525 ? L 15 524 ? L 16 523 ? L 17 522 ? L 18 521 ? L 19 520 ? L 20 519 ? L 21 518 ? L 22 517 ? L 23 516 ? L 24 515 ? L 25 514 ? L 26 513 ? L 27 512 ? L 28 511 ?...
result:
ok
Test #116:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
323
output:
! -1
result:
ok impossible!
Test #117:
score: 0
Accepted
time: 1ms
memory: 3528kb
input:
27
output:
! -1
result:
ok impossible!
Test #118:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
485
output:
! -1
result:
ok impossible!
Test #119:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
900 No Yes No Yes No Yes No Yes No No No No No Yes No No No Yes Yes No No Yes Yes Yes No No Yes No Yes Yes No Yes Yes Yes No No Yes No No No No Yes Yes Yes Yes Yes No No No Yes Yes Yes Yes No Yes No Yes No Yes No Yes No No No No Yes Yes Yes Yes No Yes No No Yes Yes Yes Yes No Yes Yes Yes No No Yes Y...
output:
? L 1 900 ? L 2 899 ? L 3 898 ? L 4 897 ? L 5 896 ? L 6 895 ? L 7 894 ? L 8 893 ? L 9 892 ? L 10 891 ? L 11 890 ? L 12 889 ? L 13 888 ? L 14 887 ? L 15 886 ? L 16 885 ? L 17 884 ? L 18 883 ? L 19 882 ? L 20 881 ? L 21 880 ? L 22 879 ? L 23 878 ? L 24 877 ? L 25 876 ? L 26 875 ? L 27 874 ? L 28 873 ?...
result:
ok
Test #120:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
440 No Yes No Yes Yes Yes Yes Yes No Yes Yes Yes Yes No Yes Yes No Yes No No No Yes Yes No No Yes No Yes Yes Yes No Yes Yes Yes No Yes Yes No Yes Yes Yes Yes Yes Yes No No No No No Yes No No No Yes No No Yes No No Yes Yes No Yes Yes Yes No No Yes No Yes Yes Yes Yes No No No Yes Yes No Yes Yes Yes Ye...
output:
? L 1 440 ? L 2 439 ? L 3 438 ? L 4 437 ? L 5 436 ? L 6 435 ? L 7 434 ? L 8 433 ? L 9 432 ? L 10 431 ? L 11 430 ? L 12 429 ? L 13 428 ? L 14 427 ? L 15 426 ? L 16 425 ? L 17 424 ? L 18 423 ? L 19 422 ? L 20 421 ? L 21 420 ? L 22 419 ? L 23 418 ? L 24 417 ? L 25 416 ? L 26 415 ? L 27 414 ? L 28 413 ?...
result:
ok
Test #121:
score: 0
Accepted
time: 1ms
memory: 3512kb
input:
533
output:
! -1
result:
ok impossible!
Test #122:
score: 0
Accepted
time: 1ms
memory: 3548kb
input:
619
output:
! -1
result:
ok impossible!
Test #123:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
361
output:
! -1
result:
ok impossible!
Test #124:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
14 Yes No Yes No Yes Yes Yes
output:
? L 1 14 ? L 2 13 ? L 3 12 ? L 4 11 ? L 5 10 ? L 6 9 ? L 7 8 ! 7
result:
ok
Test #125:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
64 No Yes Yes No No Yes No Yes No No Yes Yes No No Yes No No Yes Yes Yes No No No Yes Yes No Yes No No Yes No No
output:
? L 1 64 ? L 2 63 ? L 3 62 ? L 4 61 ? L 5 60 ? L 6 59 ? L 7 58 ? L 8 57 ? L 9 56 ? L 10 55 ? L 11 54 ? L 12 53 ? L 13 52 ? L 14 51 ? L 15 50 ? L 16 49 ? L 17 48 ? L 18 47 ? L 19 46 ? L 20 45 ? L 21 44 ? L 22 43 ? L 23 42 ? L 24 41 ? L 25 40 ? L 26 39 ? L 27 38 ? L 28 37 ? L 29 36 ? L 30 35 ? L 31 34...
result:
ok
Test #126:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
659
output:
! -1
result:
ok impossible!
Test #127:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
839
output:
! -1
result:
ok impossible!
Test #128:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
518 No Yes Yes Yes No No Yes No No Yes No Yes Yes No Yes No Yes No No Yes No Yes No No Yes Yes No No No Yes No No Yes No Yes Yes Yes No Yes No Yes No No No Yes Yes No Yes Yes No No Yes Yes Yes No Yes Yes Yes No Yes No No No No No No No No No Yes No Yes Yes Yes
output:
? L 1 518 ? L 2 517 ? L 3 516 ? L 4 515 ? L 5 514 ? L 6 513 ? L 7 512 ? L 8 511 ? L 9 510 ? L 10 509 ? L 11 508 ? L 12 507 ? L 13 506 ? L 14 505 ? L 15 504 ? L 16 503 ? L 17 502 ? L 18 501 ? L 19 500 ? L 20 499 ? L 21 498 ? L 22 497 ? L 23 496 ? L 24 495 ? L 25 494 ? L 26 493 ? L 27 492 ? L 28 491 ?...
result:
ok
Test #129:
score: 0
Accepted
time: 1ms
memory: 3632kb
input:
238 Yes Yes Yes Yes Yes Yes No No No Yes No Yes Yes No Yes No Yes No Yes Yes No Yes No Yes No No No Yes No Yes No Yes No No Yes Yes No No Yes Yes No No Yes No No No No Yes Yes No No No No Yes No Yes No No Yes No No Yes No No No No Yes Yes Yes Yes No Yes Yes No Yes No No No No Yes No Yes Yes No No Ye...
output:
? L 1 238 ? L 2 237 ? L 3 236 ? L 4 235 ? L 5 234 ? L 6 233 ? L 7 232 ? L 8 231 ? L 9 230 ? L 10 229 ? L 11 228 ? L 12 227 ? L 13 226 ? L 14 225 ? L 15 224 ? L 16 223 ? L 17 222 ? L 18 221 ? L 19 220 ? L 20 219 ? L 21 218 ? L 22 217 ? L 23 216 ? L 24 215 ? L 25 214 ? L 26 213 ? L 27 212 ? L 28 211 ?...
result:
ok
Test #130:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
782 Yes Yes No Yes Yes No Yes Yes No No Yes No No No No No Yes Yes No No Yes Yes Yes Yes No No Yes Yes Yes No Yes No Yes No No No No No Yes No No Yes No No No No No Yes Yes Yes No No No No Yes Yes Yes Yes No Yes Yes Yes Yes No No Yes No No Yes Yes Yes
output:
? L 1 782 ? L 2 781 ? L 3 780 ? L 4 779 ? L 5 778 ? L 6 777 ? L 7 776 ? L 8 775 ? L 9 774 ? L 10 773 ? L 11 772 ? L 12 771 ? L 13 770 ? L 14 769 ? L 15 768 ? L 16 767 ? L 17 766 ? L 18 765 ? L 19 764 ? L 20 763 ? L 21 762 ? L 22 761 ? L 23 760 ? L 24 759 ? L 25 758 ? L 26 757 ? L 27 756 ? L 28 755 ?...
result:
ok
Test #131:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
831
output:
! -1
result:
ok impossible!
Test #132:
score: 0
Accepted
time: 1ms
memory: 3704kb
input:
855
output:
! -1
result:
ok impossible!
Test #133:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
958 No No No Yes Yes No No No Yes No Yes Yes Yes Yes No No Yes Yes No No No No Yes No Yes No No Yes No Yes Yes No No No No No No Yes No Yes Yes No Yes Yes No Yes No No No Yes Yes No Yes Yes No Yes Yes No No Yes No Yes No No Yes Yes No No Yes Yes Yes Yes No Yes No Yes Yes No Yes Yes No Yes Yes No Yes...
output:
? L 1 958 ? L 2 957 ? L 3 956 ? L 4 955 ? L 5 954 ? L 6 953 ? L 7 952 ? L 8 951 ? L 9 950 ? L 10 949 ? L 11 948 ? L 12 947 ? L 13 946 ? L 14 945 ? L 15 944 ? L 16 943 ? L 17 942 ? L 18 941 ? L 19 940 ? L 20 939 ? L 21 938 ? L 22 937 ? L 23 936 ? L 24 935 ? L 25 934 ? L 26 933 ? L 27 932 ? L 28 931 ?...
result:
ok
Test #134:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
35
output:
! -1
result:
ok impossible!
Test #135:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
878 Yes No No No No Yes No No Yes No No No No Yes Yes No No No Yes Yes No No No No No Yes No Yes No No Yes No Yes Yes Yes Yes Yes No Yes No Yes Yes No No Yes Yes Yes Yes Yes Yes No Yes Yes No No No No Yes Yes No No No Yes Yes No Yes No Yes No No Yes No
output:
? L 1 878 ? L 2 877 ? L 3 876 ? L 4 875 ? L 5 874 ? L 6 873 ? L 7 872 ? L 8 871 ? L 9 870 ? L 10 869 ? L 11 868 ? L 12 867 ? L 13 866 ? L 14 865 ? L 15 864 ? L 16 863 ? L 17 862 ? L 18 861 ? L 19 860 ? L 20 859 ? L 21 858 ? L 22 857 ? L 23 856 ? L 24 855 ? L 25 854 ? L 26 853 ? L 27 852 ? L 28 851 ?...
result:
ok
Test #136:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
534 Yes No No No No No No No Yes Yes Yes No No No No No No No Yes No No No No No No No No Yes Yes Yes Yes No No Yes Yes No Yes No No No No No Yes Yes No Yes Yes No Yes Yes No Yes No No No Yes No No Yes Yes No Yes No Yes Yes Yes No No Yes No
output:
? L 1 534 ? L 2 533 ? L 3 532 ? L 4 531 ? L 5 530 ? L 6 529 ? L 7 528 ? L 8 527 ? L 9 526 ? L 10 525 ? L 11 524 ? L 12 523 ? L 13 522 ? L 14 521 ? L 15 520 ? L 16 519 ? L 17 518 ? L 18 517 ? L 19 516 ? L 20 515 ? L 21 514 ? L 22 513 ? L 23 512 ? L 24 511 ? L 25 510 ? L 26 509 ? L 27 508 ? L 28 507 ?...
result:
ok
Test #137:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
475
output:
! -1
result:
ok impossible!
Test #138:
score: 0
Accepted
time: 1ms
memory: 3636kb
input:
922 Yes No Yes No No No Yes No No No Yes No Yes Yes Yes Yes Yes Yes No Yes No Yes No No Yes No Yes Yes Yes Yes No Yes Yes Yes No No No No Yes Yes No No No Yes Yes No No No No Yes Yes Yes Yes No Yes No
output:
? L 1 922 ? L 2 921 ? L 3 920 ? L 4 919 ? L 5 918 ? L 6 917 ? L 7 916 ? L 8 915 ? L 9 914 ? L 10 913 ? L 11 912 ? L 12 911 ? L 13 910 ? L 14 909 ? L 15 908 ? L 16 907 ? L 17 906 ? L 18 905 ? L 19 904 ? L 20 903 ? L 21 902 ? L 22 901 ? L 23 900 ? L 24 899 ? L 25 898 ? L 26 897 ? L 27 896 ? L 28 895 ?...
result:
ok
Test #139:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
644 Yes No Yes No Yes Yes No No Yes No Yes Yes No Yes No Yes Yes Yes No No No No Yes No Yes Yes No No No Yes Yes No Yes No No Yes No Yes No Yes Yes Yes Yes No No Yes Yes No No Yes No No Yes Yes No No Yes No Yes No
output:
? L 1 644 ? L 2 643 ? L 3 642 ? L 4 641 ? L 5 640 ? L 6 639 ? L 7 638 ? L 8 637 ? L 9 636 ? L 10 635 ? L 11 634 ? L 12 633 ? L 13 632 ? L 14 631 ? L 15 630 ? L 16 629 ? L 17 628 ? L 18 627 ? L 19 626 ? L 20 625 ? L 21 624 ? L 22 623 ? L 23 622 ? L 24 621 ? L 25 620 ? L 26 619 ? L 27 618 ? L 28 617 ?...
result:
ok
Test #140:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
687
output:
! -1
result:
ok impossible!
Test #141:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
655
output:
! -1
result:
ok impossible!
Test #142:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
872 Yes Yes Yes No Yes Yes No Yes Yes No No No Yes Yes Yes Yes Yes No No Yes No No Yes No Yes No Yes Yes No No No Yes No Yes No No No Yes No Yes No Yes Yes Yes Yes No Yes Yes Yes Yes No Yes No No No Yes No No No No Yes Yes Yes Yes Yes No No Yes No No No
output:
? L 1 872 ? L 2 871 ? L 3 870 ? L 4 869 ? L 5 868 ? L 6 867 ? L 7 866 ? L 8 865 ? L 9 864 ? L 10 863 ? L 11 862 ? L 12 861 ? L 13 860 ? L 14 859 ? L 15 858 ? L 16 857 ? L 17 856 ? L 18 855 ? L 19 854 ? L 20 853 ? L 21 852 ? L 22 851 ? L 23 850 ? L 24 849 ? L 25 848 ? L 26 847 ? L 27 846 ? L 28 845 ?...
result:
ok
Test #143:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
859
output:
! -1
result:
ok impossible!
Test #144:
score: 0
Accepted
time: 1ms
memory: 3548kb
input:
811
output:
! -1
result:
ok impossible!
Test #145:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
83
output:
! -1
result:
ok impossible!
Test #146:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
55
output:
! -1
result:
ok impossible!
Test #147:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
477
output:
! -1
result:
ok impossible!
Test #148:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
392 No Yes Yes No No No Yes No No Yes No No No No No No No No Yes No Yes No Yes Yes Yes No Yes No Yes Yes Yes Yes No No No Yes Yes Yes No Yes Yes No No Yes No Yes No No No No Yes No Yes Yes No No No No No Yes No No Yes Yes No No No Yes No Yes No Yes No Yes Yes No No No No Yes Yes No No Yes Yes Yes Y...
output:
? L 1 392 ? L 2 391 ? L 3 390 ? L 4 389 ? L 5 388 ? L 6 387 ? L 7 386 ? L 8 385 ? L 9 384 ? L 10 383 ? L 11 382 ? L 12 381 ? L 13 380 ? L 14 379 ? L 15 378 ? L 16 377 ? L 17 376 ? L 18 375 ? L 19 374 ? L 20 373 ? L 21 372 ? L 22 371 ? L 23 370 ? L 24 369 ? L 25 368 ? L 26 367 ? L 27 366 ? L 28 365 ?...
result:
ok
Test #149:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
596 No No Yes No No Yes Yes No Yes Yes No No No No Yes No Yes Yes No Yes Yes No Yes No No No Yes Yes Yes No Yes No No No No Yes Yes Yes No No Yes Yes No No No Yes Yes No No Yes Yes No No No No Yes Yes Yes No Yes Yes Yes Yes Yes Yes Yes Yes Yes No No Yes No Yes Yes Yes Yes No No Yes No No No Yes No Y...
output:
? L 1 596 ? L 2 595 ? L 3 594 ? L 4 593 ? L 5 592 ? L 6 591 ? L 7 590 ? L 8 589 ? L 9 588 ? L 10 587 ? L 11 586 ? L 12 585 ? L 13 584 ? L 14 583 ? L 15 582 ? L 16 581 ? L 17 580 ? L 18 579 ? L 19 578 ? L 20 577 ? L 21 576 ? L 22 575 ? L 23 574 ? L 24 573 ? L 25 572 ? L 26 571 ? L 27 570 ? L 28 569 ?...
result:
ok
Test #150:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
403
output:
! -1
result:
ok impossible!
Test #151:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
454 Yes Yes Yes No Yes Yes Yes Yes No No Yes No No No No Yes Yes No Yes Yes Yes Yes No Yes No No Yes No Yes Yes No Yes No No No Yes Yes Yes No No No Yes No Yes No Yes No Yes Yes Yes Yes Yes Yes No No Yes Yes No No Yes No No No No Yes Yes No Yes Yes No No No No Yes Yes No Yes Yes No Yes Yes Yes No No...
output:
? L 1 454 ? L 2 453 ? L 3 452 ? L 4 451 ? L 5 450 ? L 6 449 ? L 7 448 ? L 8 447 ? L 9 446 ? L 10 445 ? L 11 444 ? L 12 443 ? L 13 442 ? L 14 441 ? L 15 440 ? L 16 439 ? L 17 438 ? L 18 437 ? L 19 436 ? L 20 435 ? L 21 434 ? L 22 433 ? L 23 432 ? L 24 431 ? L 25 430 ? L 26 429 ? L 27 428 ? L 28 427 ?...
result:
ok
Test #152:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
707
output:
! -1
result:
ok impossible!
Test #153:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
638 No Yes Yes Yes Yes No No No Yes No No No Yes No No No No No No No Yes No No Yes No No No No No Yes Yes No No Yes Yes No Yes No Yes No No No No No No Yes Yes Yes Yes Yes Yes No Yes Yes No No Yes Yes No No Yes Yes Yes No No Yes No No Yes No No Yes Yes Yes No Yes Yes Yes No Yes No Yes No No No No Y...
output:
? L 1 638 ? L 2 637 ? L 3 636 ? L 4 635 ? L 5 634 ? L 6 633 ? L 7 632 ? L 8 631 ? L 9 630 ? L 10 629 ? L 11 628 ? L 12 627 ? L 13 626 ? L 14 625 ? L 15 624 ? L 16 623 ? L 17 622 ? L 18 621 ? L 19 620 ? L 20 619 ? L 21 618 ? L 22 617 ? L 23 616 ? L 24 615 ? L 25 614 ? L 26 613 ? L 27 612 ? L 28 611 ?...
result:
ok