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 10, 2023 03:22Yuriy LyfenkoYuriy LyfenkoScore: 37,538Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 03:2230,031191,745,874135,137,90402,207,744
2May 10, 2023 03:2230,041191,252,664135,184,10302,220,032
3May 10, 2023 03:2230,047227,122,140135,209,72802,224,128
4May 10, 2023 03:2237,458359,854,246130,340,00038,220,00029,560,832
5May 10, 2023 03:2237,500361,330,888134,394,00034,356,00029,765,632
6May 10, 2023 03:2237,531358,929,956139,700,00029,191,00029,671,424
7May 10, 2023 03:2237,538355,929,831132,157,00036,765,00029,671,424
8May 10, 2023 03:2237,599369,023,019140,130,00029,064,00029,556,736
9May 10, 2023 03:2237,604359,861,716136,792,00032,424,00029,667,328
10May 10, 2023 03:2237,625357,253,942139,372,00029,939,00029,560,832
11May 10, 2023 03:2237,673364,309,914140,920,00028,607,00029,601,792
12May 10, 2023 03:2237,728361,824,384138,531,00031,247,00029,556,736