main()
competitor = double(nextLine())
adCost = double(nextLine())
N = int(nextLine())
sx = tokenize(nextLine())
sy = tokenize(nextLine())
for(i = 0; i<N; i++)
x[i] = double(sx.nextToken())
for(i = 0; i<N; i++)
y[i] = double(sy.nextToken())
init(competitor,adCost,x,y)
while(true)
M = int(nextLine())
si = tokenize(nextLine())
sp = tokenize(nextLine())
for(i = 0; i<M; i++)
index[i] = int(si.nextToken())
for(i = 0; i<M; i++)
product[i] = int(sp.nextToken())
ads = update(index,products)
println(length(ads))
for(i = 0; i<length(ads); i++)
println(ads[i])
| -height <height> | Specify the initial height of the window |
| -width <width> | Specify the initial width of the window |
| -competitor <competitor> | Specify competitor |
| -adCost <adCost> | Specify adCost |
| -K <K> | Specify K |
| -N <N> | Specify N |
| -C <C> | Specify C |
| -D <D> | Specify D |
| -radius <r> | Specify the radius of the circles used for people |
| -seed <seed> | Specify the initial seed |
| -speed <speed> | Specify the initial speed |
| -exec <command> | Specify the command to execute your code |
| -novis | Run the test case without the visualizer (requires -exec, implies -go) |
| -go | Start running immediately (requires -exec) |
| -drop | Tell the visualizer to drop frames if it can't keep up |