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 7, 2023 15:52Yuriy LyfenkoYuriy LyfenkoScore: 189,964Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 15:5215,720144,810,99970,739,50202,220,032
2May 7, 2023 15:5215,860137,402,61671,372,06802,260,992
3May 7, 2023 15:5215,998138,890,48871,992,88902,260,992
4May 7, 2023 15:52188,9821,035,549,325315,120,000535,300,00029,581,312
5May 7, 2023 15:52189,4301,047,478,818348,769,000503,667,00029,462,528
6May 7, 2023 15:52189,7011,042,335,427327,635,000526,021,00029,634,560
7May 7, 2023 15:52189,9641,046,465,497323,452,000531,385,00029,691,904
8May 7, 2023 15:52190,0211,045,542,730336,430,000518,663,00029,736,960
9May 7, 2023 15:52190,0361,052,307,854343,673,000511,490,00029,601,792
10May 7, 2023 15:52190,5701,048,960,705346,440,000511,125,00029,630,464
11May 7, 2023 15:52192,2951,063,237,678348,327,000517,002,00029,679,616
12May 7, 2023 15:52194,1101,061,516,463331,222,000542,275,00029,638,656