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 21, 2023 09:11Bernard TeoBernard TeoScore: 14,715Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 09:115,45691,397,24024,552,44302,273,280
2May 21, 2023 09:115,52592,051,02924,861,97902,269,184
3May 21, 2023 09:115,601102,712,61025,205,17802,277,376
4May 21, 2023 09:1113,913239,121,77924,828,00037,782,00027,410,432
5May 21, 2023 09:1114,392253,421,99624,909,00039,855,00028,323,840
6May 21, 2023 09:1114,661263,814,00329,795,00036,180,00029,552,640
7May 21, 2023 09:1114,715256,964,93030,187,00036,030,00029,532,160
8May 21, 2023 09:1114,847262,559,00835,048,00031,762,00028,585,984
9May 21, 2023 09:1114,970268,411,98929,018,00038,346,00029,601,792
10May 21, 2023 09:1115,036270,234,61930,447,00037,214,00029,655,040
11May 21, 2023 09:1115,071268,103,20522,925,00044,895,00029,634,560
12May 21, 2023 09:1115,136264,586,17737,153,00030,961,00029,605,888