ANARC07G - Let go to the movies



hide comments
vinty: 2021-03-30 09:07:56

Will there be single big family or there can be multiple broken families? ....I mean is there a name who is super-parent of all names?

sharjeel_spoj: 2020-10-20 11:02:12

Arggh.. reading input is pure kill joy.
Hope this helps someone -
100 20
j
p
k
r
0 0
1. 0 4 80

Last edit: 2020-10-20 11:11:09
sangmai: 2020-07-23 16:23:05

The problem statement should specify if a person could buy 1 single ticket and his parent buy another family ticket. Also, taking the input is such a burden.

turik1997: 2016-10-17 01:07:40

Can one person buy 2 tickets?

theph0enix: 2016-06-22 23:06:29

dp solution would be O(2^(N+1) log N) + input time.

birdie: 2016-01-26 08:18:59

tle for top down? or tle due to java? :/

Ajey Golsangi: 2015-08-07 18:17:10

Reading the input is very time consuming :( .

Mauro Persano: 2015-08-01 23:03:31

input:
1 2
a b c d e f g
b h i j k l m
0 0

output:
1. 0 2 4

Last edit: 2015-08-01 23:20:49
Luka Hrabar: 2010-08-20 14:21:14

I didn't have problems with empty lines or double spaces, but the lines finish with '\r\n'.

Jacob: 2010-01-21 17:49:38

Horrible spacing problems again. Finally got AC by accounting for empty lines, double spaces, \r\n as opposed to \n etc.


Added by:~!(*(@*!@^&
Date:2009-07-05
Time limit:1s-1.5s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ERL JS-RHINO NODEJS PERL6 VB.NET
Resource:ANARC 2007