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 00:49Yuriy LyfenkoYuriy LyfenkoScore: 16,788Success
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 00:4910,035107,805,03845,155,98502,244,608
2Oct 11, 2021 00:4910,040102,355,54045,178,40702,256,896
3Oct 11, 2021 00:4910,042117,808,10545,189,16602,248,704
4Oct 11, 2021 00:4916,594260,484,34541,165,00033,506,00029,659,136
5Oct 11, 2021 00:4916,685269,003,79140,504,00034,577,00029,671,424
6Oct 11, 2021 00:4916,708261,829,35444,903,00030,283,00029,708,288
7Oct 11, 2021 00:4916,788264,414,75642,307,00033,241,00029,020,160
8Oct 11, 2021 00:4916,815263,063,31642,947,00032,721,00029,708,288
9Oct 11, 2021 00:4916,868270,800,95236,188,00039,719,00029,675,520
10Oct 11, 2021 00:4916,906265,535,62141,496,00034,580,00028,397,568
11Oct 11, 2021 00:4916,912270,891,23545,019,00031,084,00029,601,792
12Oct 11, 2021 00:4917,067267,950,81943,010,00033,793,00029,753,344