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 15, 2021 19:32Yuriy LyfenkoYuriy LyfenkoScore: 13,271Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:325,98991,215,07726,952,54402,244,608
2Oct 15, 2021 19:325,99297,461,26126,964,65302,256,896
3Oct 15, 2021 19:325,99482,079,73426,974,58102,265,088
4Oct 15, 2021 19:3213,133241,025,02824,390,00034,709,00029,573,120
5Oct 15, 2021 19:3213,212251,678,36427,119,00032,334,00029,675,520
6Oct 15, 2021 19:3213,254248,582,70326,737,00032,907,00029,577,216
7Oct 15, 2021 19:3213,271248,332,57222,834,00036,886,00029,474,816
8Oct 15, 2021 19:3213,272255,082,86926,318,00033,404,00029,667,328
9Oct 15, 2021 19:3213,285256,334,38326,221,00033,563,00029,577,216
10Oct 15, 2021 19:3213,334253,312,47925,162,00034,840,00029,573,120
11Oct 15, 2021 19:3213,367244,478,48230,075,00030,075,00029,675,520
12Oct 15, 2021 19:3213,405256,099,09726,269,00034,053,00029,671,424