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 10, 2021 22:48Yuriy LyfenkoYuriy LyfenkoScore: 22,600Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:4817,048133,098,22676,717,12202,273,280
2Oct 10, 2021 22:4817,120134,891,47977,039,75602,273,280
3Oct 10, 2021 22:4817,122134,330,06577,050,25502,260,992
4Oct 10, 2021 22:4822,512293,929,92469,259,00032,045,00029,753,344
5Oct 10, 2021 22:4822,544293,838,17868,656,00032,790,00029,614,080
6Oct 10, 2021 22:4822,563293,484,86467,353,00034,179,00029,630,464
7Oct 10, 2021 22:4822,600292,382,09569,531,00032,171,00029,667,328
8Oct 10, 2021 22:4822,643294,755,72370,379,00031,513,00029,552,640
9Oct 10, 2021 22:4822,670294,378,34567,010,00035,005,00029,503,488
10Oct 10, 2021 22:4822,682294,651,34269,078,00032,992,00029,655,040
11Oct 10, 2021 22:4822,732289,194,72671,713,00030,583,00029,560,832
12Oct 10, 2021 22:4822,770294,740,63473,035,00029,432,00029,630,464