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:32Ilya AniskovetsIlya AniskovetsScore: 19,257Success
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:3211,678119,198,04452,550,31802,273,280
2Oct 15, 2021 06:3211,694117,187,04552,623,32002,281,472
3Oct 15, 2021 06:3211,862120,210,56253,379,79002,265,088
4Oct 15, 2021 06:3219,126272,312,88653,528,00032,537,00029,495,296
5Oct 15, 2021 06:3219,136271,326,86954,896,00031,215,00029,491,200
6Oct 15, 2021 06:3219,213272,510,60951,273,00035,187,00029,663,232
7Oct 15, 2021 06:3219,257275,193,35851,995,00034,663,00029,630,464
8Oct 15, 2021 06:3219,272272,704,18553,688,00033,038,00029,630,464
9Oct 15, 2021 06:3219,288272,490,01555,333,00031,464,00029,630,464
10Oct 15, 2021 06:3219,395276,848,60854,680,00032,598,00029,552,640
11Oct 15, 2021 06:3219,399275,395,15856,356,00030,941,00029,630,464
12Oct 15, 2021 06:3219,593279,642,43054,976,00033,193,00029,593,600