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 listNov 9, 2021 12:21Ilya AniskovetsIlya AniskovetsScore: 20,994Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 12:2112,388112,117,23255,746,27602,252,800
2Nov 9, 2021 12:2112,412113,564,77155,854,99802,273,280
3Nov 9, 2021 12:2112,520117,771,86356,341,81602,281,472
4Nov 9, 2021 12:2120,954286,520,58259,183,00035,109,00029,499,392
5Nov 9, 2021 12:2120,979291,751,31262,938,00031,469,00029,532,160
6Nov 9, 2021 12:2120,991280,706,15358,428,00036,030,00029,548,544
7Nov 9, 2021 12:2120,994282,391,25967,010,00027,463,00029,646,848
8Nov 9, 2021 12:2121,085286,033,11156,930,00037,953,00029,659,136
9Nov 9, 2021 12:2121,172281,239,55562,491,00032,782,00029,491,200
10Nov 9, 2021 12:2121,255280,675,51964,481,00031,166,00029,696,000
11Nov 9, 2021 12:2121,331285,144,90469,390,00026,599,00029,626,368
12Nov 9, 2021 12:2121,333285,077,52966,207,00029,793,00029,597,696