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 listSep 23, 2025 00:50Tejas G.Tejas G.Score: 12,102Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 23, 2025 00:5012,08477,252,19754,377,00002,285,568
2Sep 23, 2025 00:5412,08679,210,44952,373,0002,014,0002,285,568
3Sep 23, 2025 00:5412,09284,124,16053,408,0001,007,0002,285,568
4Sep 23, 2025 00:5412,09380,633,93853,413,0001,007,0002,285,568
5Sep 23, 2025 00:5412,09475,697,15354,425,00002,285,568
6Sep 23, 2025 00:5412,09677,032,57153,423,0001,007,0002,277,376
7Sep 23, 2025 00:5412,09773,972,43054,436,00002,285,568
8Sep 23, 2025 00:5012,09876,563,14653,435,0001,008,0002,285,568
9Sep 23, 2025 00:5012,10077,469,62654,452,00002,285,568
10Sep 23, 2025 00:5012,10275,865,24653,450,0001,008,0002,285,568
11Sep 23, 2025 00:5012,10679,709,66353,468,0001,008,0002,285,568
12Sep 23, 2025 00:5012,11078,798,45053,485,0001,009,0002,285,568
13Sep 23, 2025 00:5012,11278,095,10154,502,00002,285,568
14Sep 23, 2025 00:5012,12478,796,05553,549,0001,010,0002,273,280
15Sep 23, 2025 00:5412,13076,588,74854,583,00002,523,136
16Sep 23, 2025 00:5412,13276,815,20353,584,0001,011,0002,285,568
17Sep 23, 2025 00:5412,13379,873,31654,598,00002,285,568
18Sep 23, 2025 00:5012,13586,176,70654,607,00002,285,568