Hello,
Kindly try with this input sample. Also attached the output.
Shall wait for your reply. I really would like to know, have also attached
the 'C' source code. Please try and let me know if the output is different.
Regards, Robin.


On Mon, May 9, 2011 at 10:22 PM, Paul Smith <[email protected]> wrote:

> Everyone gets different inputs I think, so you probably need to post
> the input as well as the output.
>
> In fact the easiest thing to do is download someone else's answer, run
> their answer, run your answer, and compare for differences.
>
> Paul Smith
>
> [email protected]
>
>
>
> On Mon, May 9, 2011 at 3:16 PM, robin john <[email protected]> wrote:
> > Hello
> > Can anybody kindly upload prob C output or let me know how my output is
> > wrong ?
> > Am sure my logic is right. [Comparing xor's of the 2 divided group such
> that
> > they are same and printing highest such possible sum as value]
> > Reg, robin.
> >
> > On Sun, May 8, 2011 at 12:50 PM, vivek dhiman <[email protected]>
> > wrote:
> >>
> >> Lucky!
> >>
> >> You are right.
> >>
> >> if xor of two lists is same. (say xor1 = xo2)
> >>
> >> So the exor of these two wil be 0  (xor (xor1,xor2) = 0)
> >> Or in other words lists can be divided if the xor of all the elements is
> >> zero.
> >>
> >> :)
> >>
> >>
> >>
> >> On Sun, May 8, 2011 at 8:17 AM, keshav agarwal <[email protected]>
> >> wrote:
> >>>
> >>> please tell me of my logic was correct or i just got lucky to get it
> >>> correct
> >>>
> >>> if xor to a list of nos. is zero only then the division is possible
> >>> in this case patrick can be given the one candy with lowest value while
> >>> sean keeps the rest
> >>>
> >>> if      xor(n nos.)=0
> >>> then       (nth no.) xor (xor of n-1 nos.)=0
> >>>
> >>> so patrick gets the nth candy and sean keeps the rest
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google
> Groups
> >>> "google-codejam" group.
> >>> To post to this group, send email to [email protected].
> >>> To unsubscribe from this group, send email to
> >>> [email protected].
> >>> For more options, visit this group at
> >>> http://groups.google.com/group/google-code?hl=en.
> >>
> >>
> >>
> >> --
> >> Regards
> >> Vivek Dhiman
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups
> >> "google-codejam" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group at
> >> http://groups.google.com/group/google-code?hl=en.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "google-codejam" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> > http://groups.google.com/group/google-code?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "google-codejam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-code?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

100
5
1 2 3 4 5
3
3 5 6
2
5 6
2
5 5
15
797052 483499 389428 829410 870434 100436 512880 956708 721820 715969 388400 
982155 711439 873699 713769
15
797651 102291 155065 473951 734780 843190 347160 981316 607892 35167 83534 
769968 82086 362056 334346
7
300833 134841 914885 285839 865283 90864 820329
11
561702 697727 410457 21545 827203 910271 247000 899087 154886 333672 813676
10
549357 797908 426222 959562 931915 383547 98387 596407 187471 904774
11
187356 997273 657285 301005 410350 515816 844670 362505 256624 827650 311310
12
794680 182327 529413 801430 323781 461055 77905 888219 778338 894994 819807 
95003
9
648836 657658 510670 493051 135476 221621 374010 148965 336085
3
339862 283960 96942
14
336487 549146 141718 453051 214526 143664 158049 817574 542952 651756 591348 
333614 487869 802106
7
4526 8341 2188 4873 2518 3360 11848
5
6103 9385 1982 195 13315
14
8200 3432 3514 5288 146 1294 2789 397 3646 2501 1275 1678 2076 14100
14
2236 6892 1127 9213 9438 5358 656 150 4554 9886 9142 1362 9936 12444
11
77 6628 5908 4251 7117 5274 9712 4585 7284 8637 6305
14
3900 7004 3702 1975 2314 7399 5864 5300 4170 4535 4485 89 3047 4566
5
2339 2055 2626 3352 1662
7
9467 6241 1397 7295 915 3531 11208
6
1554 5598 9881 1160 2941 8956
11
9018 3018 8610 7432 6479 9403 5695 8639 6947 1129 6097
11
9565 9214 2159 393 1930 4269 9907 2013 9199 7090 392
5
1604 5198 7291 8903 11446
4
7031 9777 4057 12959
6
6773 7371 4781 4469 110 1288
6
4169 8783 9834 6815 8161 4370
6
1817 1164 8424 3001 4932 15232
7
3815 3533 8119 3532 3967 3343 414
11
7131 4078 3367 6044 4007 997 4152 7085 7575 7124 3866
10
9164 1230 9693 7666 9018 2417 1997 8975 521 5037
3
1965 1018 1111
4
1327 8373 6297 15619
3
8196 4505 12701
4
4678 3401 5793 2478
15
2349 3367 8592 7857 1507 9012 3015 2043 3521 6446 7262 9376 9743 5288 3958
6
452 9375 6191 1160 7739 520
6
7703 7408 6957 9503 4669 12008
3
6230 7018 5153
4
3466 6247 5502 147
5
66 8085 7526 1155 1586
15
7002 8909 8042 6828 3531 3635 8623 8777 6325 6743 8093 5532 5947 4937 12510
9
5851 3220 3688 9380 3736 8086 3999 9522 2848
8
4932 9260 9848 2810 3686 3631 1231 8044
6
6839 3268 9744 9618 6795 9814
3
1063 8564 9555
15
8616 2161 4716 3647 9631 2388 4435 4473 6757 4388 6856 8294 3493 9013 1556
5
8608 3493 4474 6060 10963
6
8360 3634 7013 1742 3678 15727
12
5052 7940 5663 9498 7556 8792 51 7052 8687 3847 7211 3601
4
1799 455 4246 5718
13
6564 7138 8824 3385 4857 9814 1810 2296 9309 799 8961 6415 2830
9
9034 3527 4222 4926 9552 1937 2911 4333 5833
15
3170 4023 4312 2747 2801 7043 117 1960 3030 9776 8986 9438 6402 9053 8036
7
1940 7460 6149 2136 5870 6597 6078
5
438 221 1705 767 1341
7
6352 2617 8008 6417 7332 7418 5358
13
100 9775 996 4028 5471 2062 3458 2189 4960 7017 908 2451 12379
5
3269 562 4296 6096 9085
5
6747 216 9413 3739 12509
14
508 5222 1066 3272 3988 6063 6413 6584 3121 9259 9149 6031 3736 5958
14
4265 3126 8848 7831 6699 5033 2930 8191 4140 3225 6716 6462 1795 9507
3
8121 6982 1279
3
5100 5032 68
15
9019 2911 4093 6727 8281 8633 3188 7082 3463 9566 9012 761 1295 8064 14459
6
4526 9277 6813 8372 1537 8486
12
8877 382 2352 2674 2259 3028 6956 903 3505 3381 460 14965
3
6073 9200 13385
6
7343 1358 9313 1060 2504 12396
15
2087 9126 6631 6313 3400 7445 2454 5289 1860 9655 7992 9008 6512 3593 8526
15
5706 898 8198 6384 5876 8837 8450 751 5907 9589 6192 9171 8423 3345 7889
11
4804 8618 4787 9514 5522 1404 4324 3150 229 7653 5555
12
1515 662 7396 805 6165 7054 8502 7661 8263 4519 3676 6208
4
5907 9874 5846 10071
15
8737 2530 7576 400 5500 4819 4650 1597 267 9739 7660 8430 7282 9810 8989
8
8475 5753 3608 8385 8303 4651 1227 12084
5
6033 8584 6939 24 11546
7
6941 7776 9653 6572 9787 6260 9391
8
9126 1320 1229 4254 7536 3926 7650 15641
9
3797 1244 4402 7110 8877 6067 4116 8920 1839
10
6652 122 1075 7306 8847 8571 5140 2378 2527 8639
7
1165 2656 4048 2933 7021 2537 6348
8
8175 2302 4168 24 9320 6865 2449 7227
14
8627 9124 9032 5844 4740 819 5917 5932 4472 8865 92 6507 7629 4398
11
7311 1137 718 3460 3096 1484 1601 8566 9376 7658 5967
11
3484 6498 896 9239 7389 9291 323 9491 8512 2924 7532
9
3527 4837 7070 1199 7497 9813 5766 5817 15152
12
4803 3361 7946 7528 6121 2043 759 2700 3429 5075 7867 1508
10
7255 2198 1286 1492 1643 4227 9587 1093 3587 11726
4
9190 9137 1541 1618
3
9976 7337 14929
15
662 7056 8807 2355 4941 7460 653 3073 9185 5054 5747 5828 4492 7413 3878
3
3800 9050 11650
6
9923 7725 6799 9951 3429 2523
11
2720 7521 3970 9676 569 9827 9299 5138 2036 9271 2647
3
8266 416 8682
6
4590 9590 9304 817 9750 13799
8
8937 5325 6105 295 4946 3989 8492 328

Attachment: Output
Description: Binary data

Reply via email to