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 listDec 30, 2025 17:38Yehor BondarYehor BondarScore: 87,264Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2025 17:3887,233422,154,025391,546,0001,001,0002,314,240
2Dec 30, 2025 17:3887,257417,708,946391,656,000999,0002,383,872
3Dec 30, 2025 17:3887,258416,129,800390,663,0001,998,0002,392,064
4Dec 30, 2025 17:3887,262424,110,117392,679,00002,318,336
5Dec 30, 2025 17:3887,264426,994,313391,690,000999,0002,310,144
6Dec 30, 2025 17:3887,270421,088,064392,715,00002,318,336
7Dec 30, 2025 17:3887,274420,097,854389,736,0002,997,0002,314,240
8Dec 30, 2025 17:3887,274421,547,112390,737,0001,998,0002,318,336
9Dec 30, 2025 17:3887,512423,926,469392,803,000999,0002,318,336