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 listJan 5, 2024 12:51Oleg KovalovOleg KovalovScore: 110,114Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 5, 2024 12:51102,817536,648,702462,677,97802,195,456
2Jan 5, 2024 12:51103,008539,794,959463,536,39902,191,360
3Jan 5, 2024 12:51103,033522,379,551463,649,43802,195,456
4Jan 5, 2024 12:51109,980676,924,978439,572,00055,338,00029,667,328
5Jan 5, 2024 12:51110,088691,387,449449,910,00045,485,00029,732,864
6Jan 5, 2024 12:51110,103687,707,998448,421,00047,044,00029,544,448
7Jan 5, 2024 12:51110,114685,068,200435,480,00060,031,00029,700,096
8Jan 5, 2024 12:51110,124681,368,859455,955,00039,604,00029,679,616
9Jan 5, 2024 12:51110,184680,198,683438,929,00056,898,00029,732,864
10Jan 5, 2024 12:51110,197683,740,428442,438,00053,448,00029,794,304
11Jan 5, 2024 12:51110,250691,150,555437,992,00058,131,00029,548,544
12Jan 5, 2024 12:51110,282686,417,001451,514,00044,753,00029,732,864