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 6, 2024 15:55E SequeiraE SequeiraScore: 36,534Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 15:5236,228352,009,339131,240,00031,784,00029,659,136
2Dec 6, 2024 15:5536,250354,692,634127,317,00035,808,00029,556,736
3Dec 6, 2024 15:5236,336358,265,687130,810,00032,702,00029,552,640
4Dec 6, 2024 15:5236,354361,301,532136,151,00027,441,00029,491,200
5Dec 6, 2024 15:5236,378358,853,661130,961,00032,740,00029,507,584
6Dec 6, 2024 15:5236,454353,291,384132,259,00031,783,00029,749,248
7Dec 6, 2024 15:5236,534368,828,860133,578,00030,825,00029,626,368
8Dec 6, 2024 15:5236,563358,458,800128,418,00036,117,00029,548,544
9Dec 6, 2024 15:5236,628359,102,374133,729,00031,099,00029,626,368
10Dec 6, 2024 15:5536,699351,118,021132,948,00032,198,00029,626,368
11Dec 6, 2024 15:5236,700359,972,866126,060,00039,088,00029,593,600
12Dec 6, 2024 15:5536,827362,536,359136,165,00029,555,00029,609,984