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:15Joad NacerJoad NacerScore: 16,654Success
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:158,889121,125,34240,001,57602,269,184
2May 9, 2024 21:158,911107,200,39140,097,95802,277,376
3May 9, 2024 21:159,187122,573,36041,342,63402,273,280
4May 9, 2024 21:1516,467263,116,98841,167,00032,933,00029,663,232
5May 9, 2024 21:1516,499262,962,57541,828,00032,416,00029,487,104
6May 9, 2024 21:1516,554262,824,81534,585,00039,906,00029,495,296
7May 9, 2024 21:1516,654261,862,85345,667,00029,274,00029,507,584
8May 9, 2024 21:1516,661267,244,20641,652,00033,322,00029,663,232
9May 9, 2024 21:1516,687261,338,05240,675,00034,417,00029,548,544
10May 9, 2024 21:1516,710267,934,25541,662,00033,533,00029,495,296
11May 9, 2024 21:1516,761268,302,21145,477,00029,948,00029,630,464
12May 9, 2024 21:1516,876264,992,11146,733,00029,208,00029,552,640