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 15, 2021 06:53Ilya AniskovetsIlya AniskovetsScore: 18,005Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 06:5310,624123,691,45047,808,63002,273,280
2Oct 15, 2021 06:5310,675115,442,22948,036,47602,273,280
3Oct 15, 2021 06:5310,748110,712,81448,365,86602,281,472
4Oct 15, 2021 06:5317,813268,286,77148,096,00032,064,00029,630,464
5Oct 15, 2021 06:5317,813266,859,35347,274,00032,886,00029,663,232
6Oct 15, 2021 06:5317,973263,816,06344,384,00036,493,00029,499,392
7Oct 15, 2021 06:5318,005273,600,69153,243,00027,779,00029,630,464
8Oct 15, 2021 06:5318,017269,920,69743,799,00037,276,00029,663,232
9Oct 15, 2021 06:5318,018265,916,65346,779,00034,304,00029,593,600
10Oct 15, 2021 06:5318,083267,277,65245,099,00036,275,00029,495,296
11Oct 15, 2021 06:5318,129271,043,83245,765,00035,816,00029,540,352
12Oct 15, 2021 06:5318,328273,839,81548,456,00034,022,00029,663,232