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 17:56Yuriy LyfenkoYuriy LyfenkoScore: 15,460Success
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 17:568,147113,704,95936,659,43602,244,608
2Oct 15, 2021 17:568,151107,759,08036,680,13602,252,800
3Oct 15, 2021 17:568,158116,459,09336,709,32302,248,704
4Oct 15, 2021 17:5615,259258,909,83736,896,00031,771,00029,708,288
5Oct 15, 2021 17:5615,417256,626,76536,242,00033,135,00029,646,848
6Oct 15, 2021 17:5615,441262,518,62739,868,00029,616,00029,581,312
7Oct 15, 2021 17:5615,460258,170,85636,297,00033,272,00029,544,448
8Oct 15, 2021 17:5615,482259,626,89937,515,00032,156,00029,667,328
9Oct 15, 2021 17:5615,490257,842,25736,843,00032,860,00029,736,960
10Oct 15, 2021 17:5615,517253,318,83635,405,00034,421,00029,523,968
11Oct 15, 2021 17:5615,522259,955,08434,459,00035,390,00029,708,288
12Oct 15, 2021 17:5615,601262,459,11735,611,00034,593,00029,577,216