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:23Josu San MartinJosu San MartinScore: 5,294Success
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 04:595,25254,963,08522,605,0001,027,0002,478,080
2Apr 11, 2026 04:595,25749,890,69823,655,00002,318,336
3Apr 11, 2026 04:595,26250,217,48822,648,0001,029,0002,355,200
4Apr 11, 2026 04:595,26453,790,96022,658,0001,029,0002,351,104
5Apr 11, 2026 04:595,26856,019,40323,708,00002,482,176
6Apr 11, 2026 04:595,28050,741,98022,727,0001,033,0002,355,200
7Apr 11, 2026 04:595,29452,608,86822,787,0001,035,0002,482,176
8Apr 11, 2026 04:595,29854,306,27321,855,0001,986,0002,486,272
9Apr 11, 2026 04:595,30156,863,56122,862,000994,0002,486,272
10Apr 11, 2026 05:235,36345,396,94122,123,0002,011,0002,490,368
11Apr 11, 2026 05:235,36650,759,93423,139,0001,006,0002,347,008
12Apr 11, 2026 05:235,38348,636,26122,205,0002,018,0002,314,240