Google Code Jam 2011 Language Usage

Timon Gehr timon.gehr at gmx.ch
Sun May 8 13:07:12 PDT 2011


Whoops, there was a mistake:

Reading array of integers:

int[100000] array; //somewhere in static storage, faster
...
scanf("%d",&n);
foreach(ref x;array[0..n]) scanf("%d",&x); // note the slice


Timon


More information about the Digitalmars-d mailing list