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 02:05Yuriy LyfenkoYuriy LyfenkoScore: 15,537Success
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 02:058,199114,066,12936,893,61002,248,704
2Oct 11, 2021 02:058,202103,724,21736,907,89302,248,704
3Oct 11, 2021 02:058,20685,072,52036,926,56702,240,512
4Oct 11, 2021 02:0515,208253,309,10839,737,00028,699,00029,544,448
5Oct 11, 2021 02:0515,261266,601,26744,148,00024,526,00029,577,216
6Oct 11, 2021 02:0515,343257,767,05036,614,00032,430,00029,671,424
7Oct 11, 2021 02:0515,537264,735,31642,662,00027,256,00029,708,288
8Oct 11, 2021 02:0515,539256,156,23233,122,00036,803,00029,708,288
9Oct 11, 2021 02:0515,541256,757,21637,025,00032,911,00029,667,328
10Oct 11, 2021 02:0515,592259,833,65238,860,00031,303,00029,675,520
11Oct 11, 2021 02:0515,600262,060,74336,626,00033,574,00029,646,848
12Oct 11, 2021 02:0515,600260,589,29242,121,00028,080,00029,712,384