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 listOct 10, 2021 11:40Andrey TsvetkovAndrey TsvetkovScore: 131,459Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 11:4049,208276,068,192221,435,00702,281,472
2Oct 10, 2021 11:4049,318282,528,533221,929,06102,289,664
3Oct 10, 2021 11:4049,406278,002,079222,327,24802,265,088
4Oct 10, 2021 11:40121,442627,670,972546,487,37902,252,800
5Oct 10, 2021 11:40121,501613,590,775546,753,85302,297,856
6Oct 10, 2021 11:40121,743640,782,762547,844,63102,281,472
7Oct 10, 2021 11:40131,249774,507,610530,761,00059,860,00029,593,600
8Oct 10, 2021 11:40131,459770,398,788540,860,00050,705,00029,761,536
9Oct 10, 2021 11:40131,548772,623,598534,777,00057,190,00029,700,096
10Oct 10, 2021 11:40131,636771,634,726525,419,00066,945,00029,601,792
11Oct 10, 2021 11:40131,743781,746,333534,058,00058,786,00029,646,848
12Oct 10, 2021 11:40131,842773,192,087533,659,00059,632,00029,683,712
13Oct 10, 2021 11:40131,895771,196,340529,145,00064,382,00029,646,848
14Oct 10, 2021 11:40132,075779,029,919531,883,00062,455,00029,618,176
15Oct 10, 2021 11:40132,421776,019,689533,906,00061,989,00029,528,064