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 10, 2021 22:58Yurkov AlekseyYurkov AlekseyScore: 21,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:5812,846124,418,00357,808,41302,273,280
2Oct 10, 2021 22:5812,853118,402,42757,838,00802,265,088
3Oct 10, 2021 22:5812,871117,010,35357,918,80902,277,376
4Oct 10, 2021 22:5821,294287,055,31560,718,00035,103,00029,614,080
5Oct 10, 2021 22:5821,394293,849,84157,950,00038,321,00029,495,296
6Oct 10, 2021 22:5821,499286,662,00664,498,00032,249,00029,630,464
7Oct 10, 2021 22:5821,529290,689,14960,926,00035,956,00029,630,464
8Oct 10, 2021 22:5821,994304,599,70663,261,00035,712,00029,659,136
9Oct 10, 2021 22:5822,038302,785,57258,882,00040,288,00029,548,544
10Oct 10, 2021 22:5822,119296,581,79862,210,00037,326,00029,630,464
11Oct 10, 2021 22:5822,131297,792,87361,602,00037,987,00029,736,960
12Oct 10, 2021 22:5822,290302,614,21064,554,00035,753,00029,544,448