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 listDec 10, 2024 13:56Yuriy LyfenkoYuriy LyfenkoScore: 6,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 17:466,257652,740,14512,067,00016,089,0002,527,232
2Dec 12, 2024 17:466,271655,464,19513,101,00015,117,0002,265,088
3Dec 12, 2024 17:466,281653,649,92113,123,00015,142,0002,514,944
4Dec 12, 2024 17:466,286655,543,22513,134,00015,154,0002,514,944
5Dec 12, 2024 17:466,317650,266,07113,198,00015,228,0002,265,088
6Dec 12, 2024 17:466,332655,824,97813,229,00015,264,0002,523,136
7Dec 12, 2024 17:466,344662,503,63513,253,00015,293,0002,265,088
8Dec 12, 2024 17:466,360657,036,18112,266,00016,355,0002,265,088
9Dec 12, 2024 17:466,474656,467,45213,059,00016,073,0002,527,232
10Dec 10, 2024 13:5612,757844,994,83913,394,00044,011,00029,634,560
11Dec 10, 2024 13:5612,934851,814,98712,472,00045,732,00029,761,536
12Dec 10, 2024 13:5613,120851,667,32112,008,00047,033,00029,474,816