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 listMay 21, 2023 15:26Bernard TeoBernard TeoScore: 13,141Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 15:264,43496,943,71519,950,93402,281,472
2May 21, 2023 15:264,48291,261,85020,169,09502,273,280
3May 21, 2023 15:264,50079,545,65620,249,42902,273,280
4May 21, 2023 15:2612,886244,132,18423,024,00034,962,00029,601,792
5May 21, 2023 15:2612,957243,102,14828,730,00029,575,00029,696,000
6May 21, 2023 15:2613,056245,302,81825,041,00033,709,00029,503,488
7May 21, 2023 15:2613,141254,512,12726,652,00032,482,00029,696,000
8May 21, 2023 15:2613,237252,385,79325,370,00034,195,00029,634,560
9May 21, 2023 15:2613,436249,935,27926,384,00034,080,00029,503,488
10May 21, 2023 15:2613,554264,529,50818,929,00042,066,00029,700,096
11May 21, 2023 15:2613,641261,172,95329,556,00031,830,00029,556,736
12May 21, 2023 15:2613,820260,102,19329,334,00032,854,00029,564,928