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 listMar 6, 2024 10:59Huy Duc LeHuy Duc LeScore: 109,130Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 6, 2024 10:59101,648525,913,529457,415,76002,248,704
2Mar 6, 2024 10:59101,745518,979,516457,854,16602,240,512
3Mar 6, 2024 10:59101,814513,085,694458,162,27602,252,800
4Mar 6, 2024 10:59108,991684,098,071438,091,00052,369,00029,564,928
5Mar 6, 2024 10:59109,068680,161,632443,632,00047,173,00029,724,672
6Mar 6, 2024 10:59109,107676,229,490427,298,00063,683,00029,560,832
7Mar 6, 2024 10:59109,130682,319,359444,218,00046,867,00029,659,136
8Mar 6, 2024 10:59109,222677,408,675436,887,00054,610,00029,560,832
9Mar 6, 2024 10:59109,257682,065,125448,043,00043,614,00029,560,832
10Mar 6, 2024 10:59109,343682,529,807436,490,00055,553,00029,716,480
11Mar 6, 2024 10:59109,381682,436,389438,410,00053,804,00029,724,672
12Mar 6, 2024 10:59109,612687,849,072436,685,00056,570,00029,675,520