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:40tirochkintirochkinScore: 41,823Success
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:4035,008216,064,831157,536,71802,215,936
2Oct 11, 2021 11:4035,028229,278,192157,626,22402,224,128
3Oct 11, 2021 11:4035,044220,696,345157,695,75502,232,320
4Oct 11, 2021 11:4041,753367,139,514146,491,00041,399,00029,732,864
5Oct 11, 2021 11:4041,763373,856,933136,226,00051,706,00029,564,928
6Oct 11, 2021 11:4041,770367,862,425135,131,00052,833,00029,560,832
7Oct 11, 2021 11:4041,823367,372,296134,880,00053,324,00029,663,232
8Oct 11, 2021 11:4041,945363,250,975154,129,00034,623,00029,732,864
9Oct 11, 2021 11:4041,945372,140,406147,768,00040,986,00029,569,024
10Oct 11, 2021 11:4042,119373,605,004140,134,00049,400,00029,732,864
11Oct 11, 2021 11:4042,158372,577,929137,695,00052,018,00029,667,328
12Oct 11, 2021 11:4042,171368,761,402142,095,00047,676,00029,630,464