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 12, 2021 22:46Yurkov AlekseyYurkov AlekseyScore: 16,852Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 12, 2021 22:469,645113,460,81743,401,17302,265,088
2Oct 12, 2021 22:469,655108,607,80243,445,94902,260,992
3Oct 12, 2021 22:469,708122,797,45843,685,36602,273,280
4Oct 12, 2021 22:4616,785263,849,76945,094,00030,438,00029,495,296
5Oct 12, 2021 22:4616,810267,647,89138,768,00036,876,00029,630,464
6Oct 12, 2021 22:4616,839259,490,36540,880,00034,897,00029,552,640
7Oct 12, 2021 22:4616,852261,522,08637,916,00037,916,00029,499,392
8Oct 12, 2021 22:4616,860260,166,12440,397,00035,471,00029,663,232
9Oct 12, 2021 22:4616,862266,283,76940,404,00035,477,00029,630,464
10Oct 12, 2021 22:4616,866260,932,03240,479,00035,419,00029,667,328
11Oct 12, 2021 22:4616,995263,639,12641,257,00035,219,00029,556,736
12Oct 12, 2021 22:4617,012271,467,34645,488,00031,065,00029,696,000