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 00:16Joad NacerJoad NacerScore: 18,696Success
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 00:1610,544137,172,40247,450,21202,273,280
2May 9, 2024 00:1610,548126,739,10947,466,83102,277,376
3May 9, 2024 00:1610,559109,194,89947,514,36302,277,376
4May 9, 2024 00:1618,454268,671,60249,623,00033,419,00029,634,560
5May 9, 2024 00:1618,577273,163,11148,764,00034,831,00029,597,696
6May 9, 2024 00:1618,606267,457,96049,428,00034,297,00029,552,640
7May 9, 2024 00:1618,696270,646,03855,349,00028,781,00029,663,232
8May 9, 2024 00:1618,769271,071,66454,141,00030,319,00029,552,640
9May 9, 2024 00:1618,780269,851,55055,212,00029,296,00029,495,296
10May 9, 2024 00:1618,782273,884,12047,061,00037,456,00029,757,440
11May 9, 2024 00:1618,789268,489,13947,620,00036,930,00029,630,464
12May 9, 2024 00:1618,801274,178,36753,840,00030,766,00029,663,232