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 25, 2021 03:51Yuriy LyfenkoYuriy LyfenkoScore: 20,310Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 25, 2021 03:5112,983125,676,60758,421,69202,236,416
2Oct 25, 2021 03:5112,983116,218,99458,423,42002,236,416
3Oct 25, 2021 03:5112,993123,096,35058,468,80402,236,416
4Oct 25, 2021 03:5120,066278,854,02358,121,00032,174,00029,569,024
5Oct 25, 2021 03:5120,157278,584,91857,075,00033,633,00029,638,656
6Oct 25, 2021 03:5120,255282,280,04556,714,00034,433,00029,638,656
7Oct 25, 2021 03:5120,310276,432,47060,929,00030,464,00029,638,656
8Oct 25, 2021 03:5120,321280,827,66253,905,00037,541,00029,601,792
9Oct 25, 2021 03:5120,420290,080,44360,539,00031,350,00029,601,792
10Oct 25, 2021 03:5120,449278,916,95156,627,00035,392,00029,585,408
11Oct 25, 2021 03:5120,460282,298,57361,742,00030,329,00029,634,560
12Oct 25, 2021 03:5120,480282,799,58060,718,00031,443,00029,642,752