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 10, 2021 17:53Andrey TsvetkovAndrey TsvetkovScore: 26,218Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 17:5318,570161,217,69883,563,70802,240,512
2Oct 10, 2021 17:5318,593149,524,72583,666,28902,240,512
3Oct 10, 2021 17:5318,593146,970,20883,669,94202,244,608
4Oct 10, 2021 17:5326,076304,550,17182,950,00034,394,00029,638,656
5Oct 10, 2021 17:5326,133303,132,91585,157,00032,440,00029,671,424
6Oct 10, 2021 17:5326,179308,550,69987,303,00030,503,00029,577,216
7Oct 10, 2021 17:5326,218309,076,13286,933,00031,047,00029,769,728
8Oct 10, 2021 17:5326,245310,104,88889,931,00028,171,00029,499,392
9Oct 10, 2021 17:5326,271304,711,04982,855,00035,365,00029,507,584
10Oct 10, 2021 17:5326,306310,200,87983,682,00034,697,00029,638,656
11Oct 10, 2021 17:5326,458310,491,99182,736,00036,323,00029,581,312
12Oct 10, 2021 17:5326,528308,584,43594,366,00025,012,00029,638,656