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 16, 2021 13:22Ilya AniskovetsIlya AniskovetsScore: 31,428Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 13:2230,588197,394,033137,647,49302,256,896
2Oct 16, 2021 13:2230,641197,742,386137,884,24102,277,376
3Oct 16, 2021 13:2230,757198,561,555138,408,36302,277,376
4Oct 16, 2021 13:2231,285328,583,569111,143,00029,638,00029,696,000
5Oct 16, 2021 13:2231,289324,753,349100,571,00040,228,00029,548,544
6Oct 16, 2021 13:2231,371337,091,978111,890,00029,279,00029,700,096
7Oct 16, 2021 13:2231,428332,915,137107,608,00033,819,00029,630,464
8Oct 16, 2021 13:2231,439327,533,455109,138,00032,337,00029,630,464
9Oct 16, 2021 13:2231,478329,444,021108,565,00033,086,00029,548,544
10Oct 16, 2021 13:2231,520331,257,845108,710,00033,130,00029,630,464
11Oct 16, 2021 13:2231,552335,974,663110,666,00031,320,00029,499,392
12Oct 16, 2021 13:2231,557332,398,357112,554,00029,453,00029,663,232