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 5, 2026 11:22Victor MerckléVictor MerckléScore: 3,980Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2026 11:243,96934,713,83616,825,0001,037,0002,383,872
2May 5, 2026 11:243,97537,130,59316,825,0001,063,0002,383,872
3May 5, 2026 11:243,97633,451,42116,860,0001,032,0002,383,872
4May 5, 2026 11:243,97833,644,75716,868,0001,035,0002,375,680
5May 5, 2026 11:243,98032,453,70216,860,0001,053,0002,383,872
6May 5, 2026 11:244,00034,919,70716,874,0001,127,0002,383,872
7May 5, 2026 11:244,00236,013,49916,876,0001,135,0002,392,064
8May 5, 2026 11:244,00633,724,91016,866,0001,163,0002,371,584
9May 5, 2026 11:244,01032,266,16816,996,0001,051,0002,379,776