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:18Ilya AniskovetsIlya AniskovetsScore: 16,398Success
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:189,331120,350,66141,989,32402,248,704
2Nov 9, 2021 13:189,359114,673,33742,114,53002,240,512
3Nov 9, 2021 13:189,361104,499,74642,124,27902,236,416
4Nov 9, 2021 13:1816,233263,896,35136,998,00036,049,00029,663,232
5Nov 9, 2021 13:1816,386259,247,77039,326,00034,410,00029,708,288
6Nov 9, 2021 13:1816,388260,838,17843,379,00030,365,00029,704,192
7Nov 9, 2021 13:1816,398268,999,12042,322,00031,470,00029,540,352
8Nov 9, 2021 13:1816,413261,843,42642,817,00031,042,00029,650,944
9Nov 9, 2021 13:1816,483262,301,11142,386,00031,789,00029,732,864
10Nov 9, 2021 13:1816,494265,242,99346,107,00028,114,00029,700,096
11Nov 9, 2021 13:1816,604265,742,89143,148,00031,572,00029,650,944
12Nov 9, 2021 13:1816,658263,125,34847,595,00027,367,00029,569,024