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 listDec 31, 2023 21:04Victor MuñozVictor MuñozScore: 10,758Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2023 21:043,36579,289,93015,142,66502,220,032
2Dec 31, 2023 21:043,36580,536,59215,142,85902,207,744
3Dec 31, 2023 21:043,37490,048,49615,183,67002,224,128
4Dec 31, 2023 21:0410,641233,130,96815,590,00032,293,00029,745,152
5Dec 31, 2023 21:0410,724235,299,53312,511,00035,746,00029,503,488
6Dec 31, 2023 21:0410,749239,180,13915,749,00032,623,00029,507,584
7Dec 31, 2023 21:0410,758233,871,35116,530,00031,879,00029,683,712
8Dec 31, 2023 21:0410,797237,002,27912,834,00035,753,00029,773,824
9Dec 31, 2023 21:0410,814232,969,88815,484,00033,180,00029,716,480
10Dec 31, 2023 21:0410,896239,921,69717,601,00031,430,00029,745,152
11Dec 31, 2023 21:0410,905238,124,59217,953,00031,120,00029,745,152
12Dec 31, 2023 21:0410,986236,866,56916,854,00032,584,00029,585,408