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 09:22Bernard TeoBernard TeoScore: 13,903Success
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 09:224,86398,154,71221,881,90002,273,280
2May 21, 2023 09:224,87599,907,86121,937,26802,273,280
3May 21, 2023 09:224,88774,211,85021,989,94602,273,280
4May 21, 2023 09:2213,376250,928,50819,447,00040,746,00029,634,560
5May 21, 2023 09:2213,444251,087,92329,718,00030,779,00029,552,640
6May 21, 2023 09:2213,467250,384,83730,301,00030,301,00029,634,560
7May 21, 2023 09:2213,903259,530,17728,875,00033,687,00029,732,864
8May 21, 2023 09:2214,097260,951,09325,579,00037,858,00029,696,000
9May 21, 2023 09:2214,125263,858,17833,003,00030,558,00029,683,712
10May 21, 2023 09:2214,136263,617,06227,899,00035,711,00029,560,832
11May 21, 2023 09:2214,226267,805,86022,075,00041,943,00029,634,560
12May 21, 2023 09:2214,256263,515,47231,074,00033,079,00029,503,488