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 11:12tirochkintirochkinScore: 40,776Success
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 11:1233,916224,240,482152,621,65102,224,128
2Oct 11, 2021 11:1233,946222,847,516152,756,73302,228,224
3Oct 11, 2021 11:1233,956229,040,389152,801,13002,224,128
4Oct 11, 2021 11:1240,724370,874,165131,046,00052,213,00029,601,792
5Oct 11, 2021 11:1240,735374,313,639136,997,00046,309,00029,601,792
6Oct 11, 2021 11:1240,760367,658,048128,698,00054,722,00029,630,464
7Oct 11, 2021 11:1240,776369,606,266128,942,00054,552,00029,564,928
8Oct 11, 2021 11:1240,810366,666,044132,685,00050,958,00029,630,464
9Oct 11, 2021 11:1240,844367,180,233141,149,00042,649,00029,552,640
10Oct 11, 2021 11:1240,879363,425,956135,173,00048,784,00029,556,736
11Oct 11, 2021 11:1240,920363,371,177146,044,00038,098,00029,732,864
12Oct 11, 2021 11:1241,070361,029,523134,895,00049,922,00029,556,736