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 21:58Yurkov AlekseyYurkov AlekseyScore: 20,052Success
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 21:5812,252128,633,24055,132,11102,265,088
2Oct 11, 2021 21:5812,258119,457,06755,160,65202,277,376
3Oct 11, 2021 21:5812,267114,857,33355,203,24302,269,184
4Oct 11, 2021 21:5819,973281,002,59158,525,00031,353,00029,630,464
5Oct 11, 2021 21:5819,978283,835,83853,558,00036,343,00029,552,640
6Oct 11, 2021 21:5819,983274,094,73057,225,00032,700,00029,671,424
7Oct 11, 2021 21:5820,052276,236,16658,081,00032,152,00029,626,368
8Oct 11, 2021 21:5820,085283,676,21048,668,00041,716,00029,667,328
9Oct 11, 2021 21:5820,101273,901,06659,225,00031,228,00029,552,640
10Oct 11, 2021 21:5820,161276,261,26457,354,00033,369,00029,556,736
11Oct 11, 2021 21:5820,243283,735,89860,016,00031,079,00029,724,672
12Oct 11, 2021 21:5820,331283,794,89661,364,00030,124,00029,630,464