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 11, 2026 05:39Josu San MartinJosu San MartinScore: 4,987Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2026 05:384,95051,740,75721,261,0001,012,0002,392,064
2Apr 11, 2026 05:384,95751,317,09222,308,00002,392,064
3Apr 11, 2026 05:394,95851,403,71822,312,00002,392,064
4Apr 11, 2026 05:384,95950,604,55722,317,00002,342,912
5Apr 11, 2026 05:394,96048,039,87522,322,00002,342,912
6Apr 11, 2026 05:394,96347,129,43122,334,00002,396,160
7Apr 11, 2026 05:384,96545,673,64422,342,00002,396,160
8Apr 11, 2026 05:384,97054,225,60021,348,0001,016,0002,392,064
9Apr 11, 2026 05:394,97849,352,94422,401,00002,342,912
10Apr 11, 2026 05:384,98750,117,63822,442,00002,338,816
11Apr 11, 2026 05:384,98847,600,53321,427,0001,020,0002,342,912
12Apr 11, 2026 05:394,99046,235,00722,453,00002,400,256
13Apr 11, 2026 05:394,99750,029,25622,485,00002,404,352
14Apr 11, 2026 05:394,99748,731,88422,486,00002,392,064
15Apr 11, 2026 05:395,00045,698,47121,479,0001,022,0002,342,912
16Apr 11, 2026 05:385,00545,628,33421,499,0001,023,0002,396,160
17Apr 11, 2026 05:395,01348,462,96721,535,0001,025,0002,342,912
18Apr 11, 2026 05:385,02346,541,89221,578,0001,027,0002,342,912