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 17, 2021 16:39Yurkov AlekseyYurkov AlekseyScore: 16,246Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 17, 2021 16:398,945103,299,12440,251,82702,269,184
2Oct 17, 2021 16:399,028110,121,71140,624,05402,277,376
3Oct 17, 2021 16:399,02998,753,19840,631,63502,273,280
4Oct 17, 2021 16:3915,861253,589,96639,885,00031,488,00029,663,232
5Oct 17, 2021 16:3916,072258,456,35843,623,00028,699,00029,630,464
6Oct 17, 2021 16:3916,170261,462,18139,593,00033,173,00029,626,368
7Oct 17, 2021 16:3916,246262,718,28839,203,00033,906,00029,630,464
8Oct 17, 2021 16:3916,266260,299,62339,828,00033,370,00029,761,536
9Oct 17, 2021 16:3916,312259,744,35737,192,00036,213,00029,556,736
10Oct 17, 2021 16:3916,328259,458,32237,227,00036,248,00029,630,464
11Oct 17, 2021 16:3916,400265,692,87138,896,00034,906,00029,552,640
12Oct 17, 2021 16:3916,449276,839,09439,692,00034,328,00029,630,464