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 11, 2021 06:49Sergey StreminSergey StreminScore: 19,649Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 06:4911,853114,909,39253,338,84102,215,936
2Oct 11, 2021 06:4912,063131,257,85254,281,63102,220,032
3Oct 11, 2021 06:4912,128134,163,05154,575,56902,211,840
4Oct 11, 2021 06:4919,618271,968,01753,170,00035,112,00029,601,792
5Oct 11, 2021 06:4919,631262,359,31851,688,00036,652,00027,549,696
6Oct 11, 2021 06:4919,646281,243,86157,205,00031,202,00029,646,848
7Oct 11, 2021 06:4919,649279,236,66356,462,00031,960,00029,659,136
8Oct 11, 2021 06:4919,688279,513,17954,366,00034,230,00029,696,000
9Oct 11, 2021 06:4919,714275,123,80456,084,00032,631,00029,638,656
10Oct 11, 2021 06:4919,717275,169,28255,071,00033,654,00029,728,768
11Oct 11, 2021 06:4919,736275,285,48255,766,00033,046,00029,696,000
12Oct 11, 2021 06:4919,824276,755,62953,727,00035,480,00029,511,680