Search found 69 matches

by anacharsis
Sat Jan 02, 2016 1:08 am
Forum: Volume 105 (10500-10599)
Topic: 10505 - Montesco vs Capuleto
Replies: 73
Views: 37098

Re: 10505 - Montesco vs Capuleto

brianfry713 wrote:No, the output should be 0 in that case.
Why is this the case though?
The problem statement is that a person will accept an invite provided none of his enemies are invited and all of his friends are.
Person 1 has no friends and 2 enemies.
So inviting him should be ok?
by anacharsis
Fri Dec 25, 2015 10:27 pm
Forum: Volume 111 (11100-11199)
Topic: 11107 - Life Forms
Replies: 21
Views: 13390

Re: 11107 - Life Forms

Does anyone have any critical input for this one?
I've passed all of the sample input in this thread, and a whole host of others that I've generated myself.
But I still can't get accepted...
by anacharsis
Thu Dec 03, 2015 6:53 am
Forum: Volume 12 (1200-1299)
Topic: 1216 - The Bug Sensor Problem
Replies: 7
Views: 5786

Re: 1216 - The Bug Sensor Problem

Some I/O In: 10 5 29277 44741 64023 76864 99661 91648 7220 25185 84478 22943 11754 88211 23180 4965 95476 52091 1394 81930 80995 33733 6977 3856 57314 17573 74925 7459 18837 9679 65248 13708 20379 66031 25746 979 60402 24166 96624 1838 -1 128 22713 53546 96368 55833 35880 41748 3612 12770 38668 1798...
by anacharsis
Tue Dec 01, 2015 6:03 pm
Forum: Volume 106 (10600-10699)
Topic: 10687 - Monitoring the Amazon
Replies: 4
Views: 4550

Re: 10687 - Monitoring the Amazon

Some I/O In: 91 4 17 8 16 -20 12 12 1 15 -13 -5 -14 17 -1 7 -8 18 -12 -3 13 -18 -11 -16 -12 0 14 -10 -8 13 5 11 -9 -19 19 1 -16 -12 12 1 14 6 17 11 0 18 -2 18 -17 13 -3 3 11 -17 -1 11 10 19 -14 16 -2 7 3 0 10 -12 9 -10 -15 -1 -20 -5 -5 6 16 8 -12 -18 10 2 -5 9 -11 7 4 5 17 -4 -14 -17 -6 1 -11 -1 -16...
by anacharsis
Sun Nov 29, 2015 8:58 pm
Forum: Volume 4 (400-499)
Topic: 429 - Word Transformation
Replies: 82
Views: 17008

Re: 429 - Word Transformation

Some I/O

In:

Code: Select all

1

axe
axi
bxi
cxi
dxi
dli
dlx
dls
cls
clx
*
axe axi
axe clx
axi cls
axi dli
dli cls
cxi cls
AC out:

Code: Select all

axe axi 1
axe clx 5
axi cls 4
axi dli 2
dli cls 2
cxi cls 4
by anacharsis
Fri Nov 20, 2015 3:56 pm
Forum: Volume 121 (12100-12199)
Topic: 12192 - Grapevine
Replies: 3
Views: 2391

Re: 12192 - Grapevine

Larger I/O set In: 5 19 17 26 31 37 45 50 57 66 72 78 83 92 101 108 114 120 129 135 141 34 39 44 52 59 68 73 78 85 90 96 105 112 118 124 132 137 145 152 48 54 63 69 74 80 87 92 98 104 110 117 125 132 139 144 150 156 162 64 72 80 87 92 100 106 113 122 128 134 141 148 155 161 169 176 181 186 76 82 90 ...
by anacharsis
Fri Nov 20, 2015 3:52 pm
Forum: Volume 121 (12100-12199)
Topic: 12192 - Grapevine
Replies: 3
Views: 2391

Re: 12192 - Grapevine

Make sure you can handle cases like this:

In:

Code: Select all

3 3
4 4 4
4 4 4
4 4 4
1
4 4
0 0
Out:

Code: Select all

3
-
by anacharsis
Wed Nov 18, 2015 11:25 pm
Forum: Volume 5 (500-599)
Topic: 565 - Pizza Anyone?
Replies: 12
Views: 4228

Re: 565 - Pizza Anyone?

I think the sample output could have been chosen to make things a bit more clear. For example, the first input is +A+B+C+D-E-F-G-H; -A-B+C+D-E-F+G+H; -A+B-C+D-E+F-G+H; . The sample output indicates that the empty pizza satisfies these preference lists. It's true it does - it is WITHOUT E, so it sati...
by anacharsis
Wed Nov 18, 2015 11:15 pm
Forum: Volume 5 (500-599)
Topic: 565 - Pizza Anyone?
Replies: 12
Views: 4228

Re: 565 - Pizza Anyone?

Some I/O In: +C+K-P-H; -E-A-P-D-L; +P; -C+E-L-I; -E-H+B; -N-J+H; +B+A-P+F; -O+K+F+G; +B-H-P+E+L; . +H+O+D; -K; +C+E-J-K+D; +B; +H+L-P+M+K; +J-O+F-I+H; -N+L-B; . -E-O-I; -F; +D-H-P; +I; -N-P+B; +J; . -F-K; -B+O+N-J+A; +B; +N+O+L-P; -C+K-E-I; -G-B+F+A; +N; +P+K-B; . +D-H+J-B; -L+F-N+C; -D-G; +J+G-M+D;...
by anacharsis
Tue Nov 17, 2015 7:14 pm
Forum: Volume 113 (11300-11399)
Topic: 11368 - Nested Dolls
Replies: 9
Views: 4714

Re: 11368 - Nested Dolls

Some I/O In: 50 100 7308 7036 2327 5668 7532 1142 6034 7916 737 2916 1555 3949 672 6804 3795 3638 322 4039 5272 7327 4471 1885 9006 5466 1204 5887 8481 3577 4216 4985 6712 9772 5965 8802 1195 5604 7066 745 6677 249 6357 4222 7988 9077 2262 3178 6605 2843 5062 5915 2733 311 8918 5424 6523 3796 5917 7...
by anacharsis
Thu Nov 12, 2015 6:57 pm
Forum: Volume 9 (900-999)
Topic: 983 - Localized Summing for Blurring
Replies: 5
Views: 5547

Re: 983 - Localized Summing for Blurring

Some I/O In: 17 12 3 7 11 7 3 10 3 5 15 4 1 10 8 0 9 12 2 3 7 7 0 7 10 1 11 11 12 15 9 9 8 1 6 7 0 15 4 7 10 2 11 12 13 6 5 5 3 2 12 2 7 5 0 5 8 8 9 15 5 5 0 6 8 15 8 5 11 4 0 11 6 7 1 15 5 6 7 4 11 3 9 10 4 0 9 9 3 14 8 12 3 12 8 5 0 5 10 7 15 9 0 14 1 3 5 10 15 15 9 7 6 10 15 15 0 4 8 15 4 9 9 0 5...
by anacharsis
Tue Nov 03, 2015 9:36 pm
Forum: Volume 109 (10900-10999)
Topic: 10927 - Bright Lights
Replies: 26
Views: 13717

Re: 10927 - Bright Lights

A few larger ones In: 1000 -62 247 456 -386 421 15 -161 198 51 -119 486 395 -30 10 154 -264 257 228 315 403 99 370 63 419 -323 8 80 356 198 299 187 426 230 -194 255 72 16 66 220 -37 46 37 273 282 57 114 419 268 -45 5 378 -438 301 344 -193 355 249 -144 57 310 -103 21 402 209 402 166 450 410 343 -183 ...
by anacharsis
Tue Nov 03, 2015 9:32 pm
Forum: Volume 109 (10900-10999)
Topic: 10927 - Bright Lights
Replies: 26
Views: 13717

Re: 10927 - Bright Lights

Some medium size I/O In: 200 82 62 56 50 99 82 -98 77 59 -79 10 99 60 74 64 19 52 17 61 30 69 -95 95 17 -38 18 80 72 64 25 74 92 46 -76 69 12 97 21 56 -58 84 30 -34 71 72 75 38 34 -92 28 73 81 3 41 89 70 87 -25 94 80 -96 32 55 3 46 19 -51 2 96 46 39 35 5 3 59 37 64 2 7 24 1 -38 97 20 -74 8 70 -41 37...
by anacharsis
Tue Nov 03, 2015 5:16 pm
Forum: Volume 7 (700-799)
Topic: 722 - Lakes
Replies: 10
Views: 7081

Re: 722 - Lakes

Be careful on input parsing for this one - THERE IS NO BLANK LINE AFTER THE LAST CASE.
You just get an eof.
by anacharsis
Fri Oct 30, 2015 1:50 am
Forum: Volume 17 (1700-1799)
Topic: 1709 - Amalgamated Artichokes
Replies: 3
Views: 2402

Re: 1709 - Amalgamated Artichokes

Bigger set of I/O to check for timeouts. Note that if you are going to do this one in java, you have to use range compression to get the trig fn inputs into the [0..2pi] range or you'll likely timeout terribly. In: 660 48 119 145 433 804267 171 376 915 699 88 480041 569 834 33 254 53 559783 872 430 ...

Go to advanced search