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 listJul 18, 2023 15:41gchebanovgchebanovScore: 17,010Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 15:419,860109,938,91044,370,67002,265,088
2Jul 18, 2023 15:419,874109,870,80044,434,21002,269,184
3Jul 18, 2023 15:419,877112,588,62944,446,31502,265,088
4Jul 18, 2023 15:4116,984266,466,01245,210,00031,216,00029,626,368
5Jul 18, 2023 15:4116,997264,648,40843,853,00032,634,00029,630,464
6Jul 18, 2023 15:4117,000261,523,95045,688,00030,812,00029,724,672
7Jul 18, 2023 15:4117,010263,562,59844,651,00031,893,00029,536,256
8Jul 18, 2023 15:4117,069261,768,83943,013,00033,796,00029,659,136
9Jul 18, 2023 15:4117,091260,857,27442,043,00034,865,00029,724,672
10Jul 18, 2023 15:4117,110262,828,63744,298,00032,696,00029,458,432
11Jul 18, 2023 15:4117,152278,004,40539,556,00037,626,00029,757,440
12Jul 18, 2023 15:4117,214267,218,58449,294,00028,168,00029,626,368