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 listApr 18, 2025 20:56KeefeKeefeScore: 16,816Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2025 20:5716,78099,900,80074,503,0001,006,0002,273,280
2Apr 18, 2025 20:5616,78198,848,37874,510,0001,006,0002,269,184
3Apr 18, 2025 20:5616,78198,140,81274,508,0001,006,0002,277,376
4Apr 18, 2025 20:5716,783102,162,08973,509,0002,013,0002,289,664
5Apr 18, 2025 20:5716,79398,135,38773,552,0002,015,0002,289,664
6Apr 18, 2025 20:5716,79498,376,18474,565,0001,007,0002,289,664
7Apr 18, 2025 20:5716,806100,782,86874,620,0001,008,0002,289,664
8Apr 18, 2025 20:5616,808100,890,52174,630,0001,008,0002,289,664
9Apr 18, 2025 20:5616,814101,587,93373,670,0001,991,0002,289,664
10Apr 18, 2025 20:5716,816102,114,93074,663,0001,008,0002,281,472
11Apr 18, 2025 20:5616,822100,356,68374,689,0001,009,0002,281,472
12Apr 18, 2025 20:5616,827102,974,83274,714,0001,009,0002,289,664
13Apr 18, 2025 20:5616,828109,404,94374,718,0001,009,0002,289,664
14Apr 18, 2025 20:5716,849101,807,57374,822,000997,0002,281,472
15Apr 18, 2025 20:5616,858101,722,61074,865,000998,0002,265,088
16Apr 18, 2025 20:5716,860105,426,71973,876,0001,996,0002,289,664
17Apr 18, 2025 20:5616,862102,424,24473,881,0001,996,0002,277,376
18Apr 18, 2025 20:5716,868100,371,52174,906,000998,0002,277,376