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 16, 2024 23:41Joad NacerJoad NacerScore: 5,540Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 20:035,51957,848,08723,844,000993,0002,535,424
2Dec 16, 2024 23:415,52648,182,86123,875,000994,0002,433,024
3Dec 12, 2024 20:035,53052,373,92222,896,0001,991,0002,510,848
4Dec 12, 2024 20:035,53249,497,84623,901,000995,0002,428,928
5Dec 12, 2024 20:035,53252,825,37124,895,00002,437,120
6Dec 12, 2024 20:035,53552,158,91523,913,000996,0002,531,328
7Dec 12, 2024 20:035,53651,396,80923,916,000996,0002,531,328
8Dec 12, 2024 20:035,53748,104,31623,880,0001,038,0002,531,328
9Dec 16, 2024 23:415,53754,113,29023,919,000996,0002,531,328
10Dec 16, 2024 23:415,54048,519,14623,934,000997,0002,531,328
11Dec 12, 2024 20:035,54148,291,95923,936,000997,0002,433,024
12Dec 16, 2024 23:415,55646,399,79823,003,0002,000,0002,428,928
13Dec 16, 2024 23:415,55748,600,24024,007,0001,000,0002,433,024
14Dec 16, 2024 23:415,57849,651,15823,092,0002,008,0002,531,328
15Dec 12, 2024 20:035,63448,322,80225,351,00002,433,024
16Dec 16, 2024 23:415,65746,324,07025,456,00002,510,848
17Dec 16, 2024 23:415,65751,790,98424,440,0001,018,0002,428,928
18Dec 16, 2024 23:415,68848,785,09025,595,00002,269,184