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 19:27Yuriy LyfenkoYuriy LyfenkoScore: 13,202Success
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 19:275,97888,071,08426,900,56602,260,992
2Oct 15, 2021 19:275,99586,192,24826,975,42402,256,896
3Oct 15, 2021 19:275,99794,321,81726,985,71802,248,704
4Oct 15, 2021 19:2713,136255,617,52522,274,00036,838,00029,548,544
5Oct 15, 2021 19:2713,155255,610,00627,003,00032,196,00029,675,520
6Oct 15, 2021 19:2713,164248,247,92325,982,00033,257,00029,704,192
7Oct 15, 2021 19:2713,202248,534,15124,349,00035,062,00029,573,120
8Oct 15, 2021 19:2713,212246,713,80823,973,00035,480,00029,663,232
9Oct 15, 2021 19:2713,261253,794,38029,837,00029,837,00029,577,216
10Oct 15, 2021 19:2713,293250,217,47828,801,00031,017,00029,507,584
11Oct 15, 2021 19:2713,302248,076,96029,385,00030,474,00029,519,872
12Oct 15, 2021 19:2713,404249,080,51124,321,00035,995,00029,675,520