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 8, 2021 08:23Ilya AniskovetsIlya AniskovetsScore: 14,690Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 8, 2021 08:237,141103,247,34432,134,66602,269,184
2Nov 8, 2021 08:237,19294,405,39232,363,61102,273,280
3Nov 8, 2021 08:237,22895,720,24632,524,07902,277,376
4Nov 8, 2021 08:2314,425246,576,45031,925,00032,989,00029,523,968
5Nov 8, 2021 08:2314,653251,068,38836,501,00029,437,00029,552,640
6Nov 8, 2021 08:2314,678250,329,83836,564,00029,487,00029,630,464
7Nov 8, 2021 08:2314,690259,377,71329,274,00036,829,00029,544,448
8Nov 8, 2021 08:2314,693262,361,74035,960,00030,160,00029,556,736
9Nov 8, 2021 08:2314,709251,985,02832,553,00033,638,00029,593,600
10Nov 8, 2021 08:2314,781253,143,38432,218,00034,296,00029,667,328
11Nov 8, 2021 08:2314,847259,104,19335,632,00031,178,00029,499,392
12Nov 8, 2021 08:2314,897253,498,72333,519,00033,519,00029,544,448