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 27, 2021 07:30Ilya AniskovetsIlya AniskovetsScore: 14,719Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 27, 2021 07:307,163110,241,40832,235,71602,277,376
2Oct 27, 2021 07:307,16697,218,14432,246,00702,269,184
3Oct 27, 2021 07:307,244107,166,72832,599,56502,277,376
4Oct 27, 2021 07:3014,513256,022,98933,173,00032,136,00029,491,200
5Oct 27, 2021 07:3014,544255,185,26430,678,00034,768,00029,548,544
6Oct 27, 2021 07:3014,608263,836,83431,808,00033,929,00029,696,000
7Oct 27, 2021 07:3014,719251,423,87438,741,00027,493,00029,581,312
8Oct 27, 2021 07:3014,736253,960,85131,084,00035,229,00029,593,600
9Oct 27, 2021 07:3014,769252,012,82035,521,00030,938,00029,552,640
10Oct 27, 2021 07:3014,772256,296,49634,928,00031,548,00029,597,696
11Oct 27, 2021 07:3014,834255,314,97734,452,00032,299,00029,630,464
12Oct 27, 2021 07:3014,937261,997,66031,572,00035,646,00029,544,448