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 11, 2023 15:09Oleg KovalovOleg KovalovScore: 110,113Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 15:09102,862549,774,771462,879,63802,187,264
2Dec 11, 2023 15:09102,926523,237,320463,166,38302,191,360
3Dec 11, 2023 15:09102,932530,058,552463,194,52102,236,416
4Dec 11, 2023 15:09109,961689,699,022445,443,00049,381,00029,552,640
5Dec 11, 2023 15:09110,053688,180,900439,878,00055,362,00029,667,328
6Dec 11, 2023 15:09110,063691,592,809442,890,00052,395,00029,696,000
7Dec 11, 2023 15:09110,113683,984,100449,815,00045,692,00029,667,328
8Dec 11, 2023 15:09110,116678,930,499432,350,00063,174,00029,540,352
9Dec 11, 2023 15:09110,170677,425,333452,485,00043,281,00029,732,864
10Dec 11, 2023 15:09110,174683,027,639437,337,00058,445,00029,466,624
11Dec 11, 2023 15:09110,196681,557,606440,559,00055,321,00029,552,640
12Dec 11, 2023 15:09110,277681,055,692443,853,00052,392,00029,560,832