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 listJul 31, 2025 22:03Aniruddha DebAniruddha DebScore: 9,064Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2025 22:039,01069,891,27234,465,0006,082,0002,301,952
2Jul 31, 2025 22:039,02572,687,00534,521,0006,092,0002,285,568
3Jul 31, 2025 22:039,03867,157,15332,537,0008,134,0002,445,312
4Jul 31, 2025 22:039,05268,410,01235,768,0004,967,0002,461,696
5Jul 31, 2025 22:039,06465,995,15036,808,0003,979,0002,457,600
6Jul 31, 2025 22:039,06868,337,69033,838,0006,966,0002,449,408
7Jul 31, 2025 22:039,07069,611,10934,843,0005,973,0002,310,144
8Jul 31, 2025 22:039,08370,004,42134,894,0005,981,0002,293,760
9Jul 31, 2025 22:039,14966,424,23738,159,0003,012,0002,527,232