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 listMay 9, 2024 21:24Joad NacerJoad NacerScore: 15,787Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:246,929101,152,58631,179,89302,281,472
2May 9, 2024 21:246,93598,709,60431,205,51702,269,184
3May 9, 2024 21:246,948115,830,22631,266,31402,285,568
4May 9, 2024 21:2415,629260,827,06138,462,00031,869,00029,630,464
5May 9, 2024 21:2415,680264,765,01137,914,00032,648,00029,491,200
6May 9, 2024 21:2415,757260,657,54434,468,00036,438,00029,630,464
7May 9, 2024 21:2415,787260,266,26434,060,00036,980,00029,544,448
8May 9, 2024 21:2415,815255,932,86636,600,00034,566,00029,499,392
9May 9, 2024 21:2415,829270,940,56440,067,00031,163,00029,712,384
10May 9, 2024 21:2415,941266,088,45139,729,00032,004,00029,593,600
11May 9, 2024 21:2416,007264,847,64443,952,00028,080,00029,663,232
12May 9, 2024 21:2416,126269,934,76437,861,00034,706,00029,630,464