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 23:45Yurkov AlekseyYurkov AlekseyScore: 16,031Success
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 23:458,86099,114,26139,871,14302,252,800
2Oct 15, 2021 23:458,870111,322,90539,916,78502,260,992
3Oct 15, 2021 23:458,879107,578,36639,954,47602,260,992
4Oct 15, 2021 23:4515,852261,232,14339,393,00031,940,00029,630,464
5Oct 15, 2021 23:4515,897258,110,21037,280,00034,258,00029,728,768
6Oct 15, 2021 23:4515,921262,162,08742,077,00029,568,00029,540,352
7Oct 15, 2021 23:4516,031261,330,95934,665,00037,475,00029,691,904
8Oct 15, 2021 23:4516,054256,228,77235,170,00037,071,00029,655,040
9Oct 15, 2021 23:4516,056254,019,06645,008,00027,242,00029,499,392
10Oct 15, 2021 23:4516,115257,670,77039,554,00032,962,00029,536,256
11Oct 15, 2021 23:4516,195261,419,48440,246,00032,632,00029,548,544
12Oct 15, 2021 23:4516,400265,306,22941,241,00032,558,00029,630,464