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 listOct 11, 2021 00:44Yuriy LyfenkoYuriy LyfenkoScore: 17,716Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 00:4410,695105,451,39148,129,64202,244,608
2Oct 11, 2021 00:4410,714129,608,55448,211,92002,256,896
3Oct 11, 2021 00:4410,717120,407,20748,225,24302,252,800
4Oct 11, 2021 00:4417,512266,875,50552,167,00026,638,00029,544,448
5Oct 11, 2021 00:4417,614268,250,67551,033,00028,231,00029,736,960
6Oct 11, 2021 00:4417,664272,545,72342,517,00036,972,00029,663,232
7Oct 11, 2021 00:4417,716271,032,83345,839,00033,881,00029,544,448
8Oct 11, 2021 00:4417,774266,518,52842,848,00037,135,00029,736,960
9Oct 11, 2021 00:4417,781267,732,34243,303,00036,713,00029,577,216
10Oct 11, 2021 00:4417,789271,984,39752,255,00027,795,00029,712,384
11Oct 11, 2021 00:4417,792264,093,82250,452,00029,613,00029,708,288
12Oct 11, 2021 00:4417,819270,714,45249,430,00030,756,00029,675,520