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:14Joad NacerJoad NacerScore: 16,525Success
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:149,640111,239,54543,378,97002,281,472
2May 9, 2024 21:149,645114,865,70043,401,88402,277,376
3May 9, 2024 21:149,649110,348,76743,422,57502,277,376
4May 9, 2024 21:1416,308260,082,48447,347,00026,041,00029,630,464
5May 9, 2024 21:1416,472264,259,01540,066,00034,056,00029,663,232
6May 9, 2024 21:1416,474261,334,54641,766,00032,368,00029,696,000
7May 9, 2024 21:1416,525259,301,61538,629,00035,732,00029,593,600
8May 9, 2024 21:1416,535262,851,38537,687,00036,720,00029,593,600
9May 9, 2024 21:1416,615261,670,82842,260,00032,507,00029,663,232
10May 9, 2024 21:1416,641267,963,68639,939,00034,947,00029,630,464
11May 9, 2024 21:1416,738262,214,61040,239,00035,080,00029,663,232
12May 9, 2024 21:1416,807265,715,36141,443,00034,190,00029,556,736