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 listNov 9, 2021 13:17Ilya AniskovetsIlya AniskovetsScore: 14,908Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 13:177,211107,185,52032,450,45602,265,088
2Nov 9, 2021 13:177,21497,284,70132,462,79402,269,184
3Nov 9, 2021 13:177,332102,648,09532,992,37302,265,088
4Nov 9, 2021 13:1714,820254,884,01640,266,00026,424,00029,614,080
5Nov 9, 2021 13:1714,867258,175,11331,997,00034,906,00029,712,384
6Nov 9, 2021 13:1714,889252,736,73534,032,00032,969,00029,581,312
7Nov 9, 2021 13:1714,908258,656,52233,027,00034,059,00029,605,888
8Nov 9, 2021 13:1714,958257,213,10234,741,00032,569,00029,741,056
9Nov 9, 2021 13:1715,024258,644,97831,926,00035,682,00029,683,712
10Nov 9, 2021 13:1715,077258,860,25731,535,00036,313,00029,618,176
11Nov 9, 2021 13:1715,135264,137,29437,350,00030,759,00029,577,216
12Nov 9, 2021 13:1715,142264,720,31041,140,00026,998,00029,618,176