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 listJun 29, 2024 17:41AnSaAnSaScore: 22,620Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2024 17:4113,426112,929,24760,416,56402,273,280
2Jun 29, 2024 17:4113,441124,546,17860,482,58102,273,280
3Jun 29, 2024 17:4113,458115,600,34760,561,50702,404,352
4Jun 29, 2024 17:4121,931283,691,30471,392,00027,297,00029,650,944
5Jun 29, 2024 17:4122,327297,629,31864,110,00036,361,00029,495,296
6Jun 29, 2024 17:4122,489305,904,43073,601,00027,600,00029,597,696
7Jun 29, 2024 17:4122,620302,406,85961,073,00040,715,00029,724,672
8Jun 29, 2024 17:4122,634301,133,49165,232,00036,621,00029,511,680
9Jun 29, 2024 17:4122,659305,452,27766,035,00035,931,00029,630,464
10Jun 29, 2024 17:4122,707305,625,71662,597,00039,583,00029,528,064
11Jun 29, 2024 17:4122,738305,340,90061,218,00041,103,00029,552,640
12Jun 29, 2024 17:4122,804312,522,58270,880,00031,737,00029,573,120