Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listMar 15, 2026 21:39Dominique GarmierDominique GarmierScore: 10,297Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2026 21:3910,21268,324,46143,958,0001,998,0002,396,160
2Mar 13, 2026 15:5010,22869,597,62844,024,0002,001,0002,379,776
3Mar 20, 2026 02:4710,23671,535,88044,061,0002,002,0002,289,664
4Mar 13, 2026 15:5010,23868,746,93944,069,0002,003,0002,289,664
5Mar 15, 2026 21:4410,25668,895,31044,147,0002,006,0002,289,664
6Mar 21, 2026 04:0810,25870,000,31744,153,0002,006,0002,289,664
7Mar 15, 2026 21:4410,27566,210,21844,227,0002,010,0002,392,064
8Mar 15, 2026 21:4410,29768,630,63745,330,0001,007,0002,392,064
9Mar 21, 2026 04:0810,29773,593,48444,321,0002,014,0002,289,664
10Mar 20, 2026 02:4710,29868,817,45744,328,0002,014,0002,285,568
11Mar 20, 2026 02:4710,32368,012,78045,444,0001,009,0002,392,064
12Mar 15, 2026 21:3910,34270,782,85045,529,0001,011,0002,289,664
13Mar 21, 2026 04:0810,36876,341,41344,672,0001,985,0002,383,872
14Mar 15, 2026 21:3910,37776,134,66845,682,0001,015,0002,289,664
15Mar 13, 2026 15:5010,52580,487,71545,347,0002,015,0002,383,872