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:09Joad NacerJoad NacerScore: 15,389Success
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:098,34599,658,84937,553,43602,273,280
2May 9, 2024 21:098,471101,935,95038,121,25102,273,280
3May 9, 2024 21:098,47497,058,56638,133,46902,277,376
4May 9, 2024 21:0915,296253,774,07037,643,00031,190,00029,630,464
5May 9, 2024 21:0915,305259,156,80436,025,00032,846,00029,548,544
6May 9, 2024 21:0915,346257,865,04838,364,00030,691,00029,630,464
7May 9, 2024 21:0915,389257,971,96135,675,00033,576,00029,540,352
8May 9, 2024 21:0915,409254,442,25237,821,00031,518,00029,663,232
9May 9, 2024 21:0915,493258,630,74735,364,00034,354,00029,544,448
10May 9, 2024 21:0915,499259,217,95434,872,00034,872,00029,556,736
11May 9, 2024 21:0915,626264,589,76235,667,00034,648,00029,556,736
12May 9, 2024 21:0915,627257,764,10631,880,00038,443,00029,720,576