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 11:32Andrey TsvetkovAndrey TsvetkovScore: 132,062Success
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 11:3249,591296,431,774223,161,10302,269,184
2Oct 10, 2021 11:3249,614285,393,221223,263,98302,289,664
3Oct 10, 2021 11:3249,700290,170,798223,647,88902,244,608
4Oct 10, 2021 11:32122,723611,052,035552,251,52902,293,760
5Oct 10, 2021 11:32123,070618,066,866553,813,79402,252,800
6Oct 10, 2021 11:32123,190609,221,777554,354,25202,289,664
7Oct 10, 2021 11:32131,644773,119,374549,867,00042,531,00029,552,640
8Oct 10, 2021 11:32132,062778,434,146539,440,00054,841,00029,683,712
9Oct 10, 2021 11:32132,112778,061,830531,408,00063,098,00029,515,776
10Oct 10, 2021 11:32132,452774,172,798536,838,00059,195,00029,765,632
11Oct 10, 2021 11:32132,514781,664,550541,191,00055,121,00029,511,680
12Oct 10, 2021 11:32132,922781,475,891533,243,00064,907,00029,634,560
13Oct 10, 2021 11:32132,930776,340,177542,799,00055,387,00029,597,696
14Oct 10, 2021 11:32133,076782,301,311544,492,00054,348,00029,696,000
15Oct 10, 2021 11:32133,180780,156,526538,074,00061,236,00029,696,000