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 14:22Ilya AniskovetsIlya AniskovetsScore: 15,226Success
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 14:227,49597,762,67833,726,57102,281,472
2Oct 15, 2021 14:227,53783,924,13333,916,47702,273,280
3Oct 15, 2021 14:227,63392,835,32934,348,40402,281,472
4Oct 15, 2021 14:2214,957251,626,23332,231,00035,075,00029,523,968
5Oct 15, 2021 14:2214,994262,335,00930,411,00037,063,00029,585,408
6Oct 15, 2021 14:2215,157258,271,31735,727,00032,479,00029,499,392
7Oct 15, 2021 14:2215,226265,191,81234,787,00033,732,00029,663,232
8Oct 15, 2021 14:2215,241255,266,22533,781,00034,805,00029,630,464
9Oct 15, 2021 14:2215,252262,145,09838,389,00030,246,00029,548,544
10Oct 15, 2021 14:2215,256257,538,89131,909,00036,743,00029,564,928
11Oct 15, 2021 14:2215,297254,353,60332,921,00035,914,00029,556,736
12Oct 15, 2021 14:2215,389258,677,05035,159,00034,093,00029,630,464