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 listOct 16, 2021 07:56Ilya AniskovetsIlya AniskovetsScore: 14,660Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 07:567,234102,223,58132,554,86602,285,568
2Oct 16, 2021 07:567,24289,407,67632,588,35102,269,184
3Oct 16, 2021 07:567,34291,971,42333,038,94102,269,184
4Oct 16, 2021 07:5614,591252,220,33132,829,00032,829,00029,630,464
5Oct 16, 2021 07:5614,616256,602,70436,408,00029,362,00029,597,696
6Oct 16, 2021 07:5614,628255,220,33635,703,00030,125,00029,544,448
7Oct 16, 2021 07:5614,660261,623,16730,986,00034,984,00029,700,096
8Oct 16, 2021 07:5614,726257,698,42128,656,00037,611,00029,728,768
9Oct 16, 2021 07:5614,740256,654,08634,309,00032,021,00029,536,256
10Oct 16, 2021 07:5614,765251,511,08637,449,00028,992,00029,552,640
11Oct 16, 2021 07:5614,787256,978,03635,566,00030,977,00029,626,368
12Oct 16, 2021 07:5615,383265,062,41743,435,00025,789,00029,552,640