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 listJun 11, 2023 22:06Victor MuñozVictor MuñozScore: 11,659Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2023 22:064,47366,556,74220,130,16902,236,416
2Jun 11, 2023 22:064,48497,037,12620,176,75702,244,608
3Jun 11, 2023 22:064,48983,063,08120,200,74302,248,704
4Jun 11, 2023 22:0611,510238,770,53419,297,00032,500,00029,663,232
5Jun 11, 2023 22:0611,586243,247,50919,966,00032,169,00029,515,776
6Jun 11, 2023 22:0611,586239,130,55220,217,00031,922,00029,675,520
7Jun 11, 2023 22:0611,659239,480,07620,767,00031,698,00029,655,040
8Jun 11, 2023 22:0611,681242,675,51219,712,00032,854,00029,679,616
9Jun 11, 2023 22:0611,683237,990,56218,846,00033,726,00029,659,136
10Jun 11, 2023 22:0611,698240,215,97220,003,00032,637,00029,708,288
11Jun 11, 2023 22:0611,716237,442,63920,631,00032,093,00029,638,656
12Jun 11, 2023 22:0611,880241,203,83820,965,00032,496,00029,671,424