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 listMay 9, 2024 21:12Joad NacerJoad NacerScore: 16,544Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:128,099109,134,19736,443,36402,285,568
2May 9, 2024 21:128,100110,446,10836,449,02002,273,280
3May 9, 2024 21:128,109106,959,26536,491,68102,285,568
4May 9, 2024 21:1216,353261,020,53338,784,00034,806,00029,757,440
5May 9, 2024 21:1216,426257,426,63042,851,00031,067,00029,663,232
6May 9, 2024 21:1216,532262,417,27347,341,00027,052,00029,499,392
7May 9, 2024 21:1216,544260,774,51341,941,00032,505,00029,724,672
8May 9, 2024 21:1216,547262,267,05040,333,00034,127,00029,544,448
9May 9, 2024 21:1216,620258,462,59640,426,00034,362,00029,626,368
10May 9, 2024 21:1216,632262,635,40945,126,00029,717,00029,499,392
11May 9, 2024 21:1216,676259,745,69045,026,00030,017,00029,626,368
12May 9, 2024 21:1216,713258,982,63939,584,00035,625,00029,663,232