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 listSep 3, 2024 16:42AnSaAnSaScore: 22,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2024 16:4221,993294,215,96764,377,00034,591,00029,663,232
2Sep 3, 2024 16:4222,163292,804,19165,483,00034,252,00029,593,600
3Sep 3, 2024 16:4222,375304,404,35463,058,00037,631,00029,499,392
4Sep 3, 2024 16:4222,445299,763,11266,076,00034,926,00029,720,576
5Sep 3, 2024 16:4222,470306,971,34054,044,00047,070,00029,626,368
6Sep 3, 2024 16:4222,474296,297,89558,311,00042,822,00029,732,864
7Sep 3, 2024 16:4222,557299,056,03562,545,00038,962,00029,458,432
8Sep 3, 2024 16:4222,567300,180,43566,644,00034,909,00029,556,736
9Sep 3, 2024 16:4222,575299,113,09066,633,00034,955,00029,556,736
10Sep 3, 2024 16:4222,580303,205,94467,447,00034,161,00029,528,064
11Sep 3, 2024 16:4222,590294,734,55166,744,00034,912,00029,646,848
12Sep 3, 2024 16:4222,778306,612,09969,127,00033,372,00029,630,464