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 listFeb 15, 2023 23:12LiamLiamScore: 109,882Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 15, 2023 23:12102,567520,454,401461,551,60702,199,552
2Feb 15, 2023 23:12102,636532,263,492461,861,50402,203,648
3Feb 15, 2023 23:12102,826525,132,158462,715,89402,191,360
4Feb 15, 2023 23:12109,755677,020,890449,926,00043,970,00029,605,888
5Feb 15, 2023 23:12109,777686,529,088458,643,00035,355,00029,732,864
6Feb 15, 2023 23:12109,861681,242,803443,127,00051,246,00029,569,024
7Feb 15, 2023 23:12109,882695,272,485441,172,00053,296,00029,732,864
8Feb 15, 2023 23:12110,032682,416,561447,229,00047,917,00029,622,272
9Feb 15, 2023 23:12110,082680,178,087443,542,00051,829,00029,696,000
10Feb 15, 2023 23:12110,120680,418,333457,341,00038,197,00029,724,672
11Feb 15, 2023 23:12110,446684,229,398451,734,00045,274,00029,540,352
12Feb 15, 2023 23:12110,471686,031,726450,577,00046,543,00029,540,352