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 11, 2021 11:06tirochkintirochkinScore: 44,114Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 11:0637,115237,003,789167,018,03302,220,032
2Oct 11, 2021 11:0637,233224,725,331167,548,72202,220,032
3Oct 11, 2021 11:0637,472230,496,400168,624,79102,232,320
4Oct 11, 2021 11:0644,001378,081,101149,059,00048,944,00029,630,464
5Oct 11, 2021 11:0644,085381,072,988156,838,00041,546,00029,667,328
6Oct 11, 2021 11:0644,089380,736,401145,100,00053,302,00029,601,792
7Oct 11, 2021 11:0644,114377,624,962145,846,00052,666,00029,556,736
8Oct 11, 2021 11:0644,121384,581,093152,490,00046,054,00029,601,792
9Oct 11, 2021 11:0644,139380,150,169138,296,00060,330,00029,753,344
10Oct 11, 2021 11:0644,232379,014,900158,064,00040,979,00029,601,792
11Oct 11, 2021 11:0644,240380,721,870137,904,00061,175,00029,528,064
12Oct 11, 2021 11:0644,311382,423,283141,861,00057,538,00029,601,792