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 15, 2021 23:43Yurkov AlekseyYurkov AlekseyScore: 16,020Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 23:439,076124,058,44240,843,44702,260,992
2Oct 15, 2021 23:439,109110,770,74740,988,89102,269,184
3Oct 15, 2021 23:439,115110,481,99641,015,79702,269,184
4Oct 15, 2021 23:4315,933256,876,45338,923,00032,777,00029,630,464
5Oct 15, 2021 23:4315,952260,757,87237,368,00034,418,00029,548,544
6Oct 15, 2021 23:4316,005265,821,31739,774,00032,249,00029,724,672
7Oct 15, 2021 23:4316,020257,567,91034,677,00037,415,00029,630,464
8Oct 15, 2021 23:4316,023260,398,16738,665,00033,440,00029,630,464
9Oct 15, 2021 23:4316,055267,580,87841,125,00031,122,00029,663,232
10Oct 15, 2021 23:4316,249263,531,61143,872,00029,248,00029,753,344
11Oct 15, 2021 23:4316,253259,162,94938,658,00034,479,00029,544,448
12Oct 15, 2021 23:4316,384264,475,23838,913,00034,817,00029,630,464