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 18:08gchebanovgchebanovScore: 15,567Success
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 18:085,00180,049,74922,502,53802,256,896
2Jul 18, 2023 18:085,01585,483,11222,566,42402,273,280
3Jul 18, 2023 18:085,11395,701,40123,008,14402,265,088
4Jul 18, 2023 18:0815,398254,763,90639,757,00029,534,00029,540,352
5Jul 18, 2023 18:0815,503258,736,16135,878,00033,884,00029,552,640
6Jul 18, 2023 18:0815,542258,543,55936,534,00033,403,00029,659,136
7Jul 18, 2023 18:0815,567257,314,77036,056,00033,995,00029,609,984
8Jul 18, 2023 18:0815,576254,792,43136,616,00033,478,00029,626,368
9Jul 18, 2023 18:0815,589262,210,28137,693,00032,457,00029,540,352
10Jul 18, 2023 18:0815,653260,603,72041,786,00028,653,00029,556,736
11Jul 18, 2023 18:0815,666260,878,00534,751,00035,744,00029,548,544
12Jul 18, 2023 18:0815,678253,898,36437,907,00032,642,00029,528,064