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 01:55Yuriy LyfenkoYuriy LyfenkoScore: 15,462Success
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 01:558,197101,321,33536,884,64502,244,608
2Oct 11, 2021 01:558,197100,146,12036,886,44302,244,608
3Oct 11, 2021 01:558,203111,443,35236,911,31802,256,896
4Oct 11, 2021 01:5515,259259,220,51737,552,00031,115,00029,675,520
5Oct 11, 2021 01:5515,338257,858,42838,824,00030,197,00029,544,448
6Oct 11, 2021 01:5515,370252,221,45037,825,00031,341,00029,478,912
7Oct 11, 2021 01:5515,462258,632,69638,536,00031,043,00029,712,384
8Oct 11, 2021 01:5515,480256,331,55543,237,00026,423,00029,675,520
9Oct 11, 2021 01:5515,498258,594,52634,871,00034,871,00029,708,288
10Oct 11, 2021 01:5515,512264,398,80041,196,00028,608,00029,552,640
11Oct 11, 2021 01:5515,641259,772,12738,297,00032,087,00029,736,960
12Oct 11, 2021 01:5515,895266,360,35837,319,00034,209,00029,544,448