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:09Aniruddha DebAniruddha DebScore: 7,070Success
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:097,02360,176,33924,468,0007,136,0002,453,504
2Jul 31, 2025 22:097,04056,402,35524,750,0006,930,0002,535,424
3Jul 31, 2025 22:097,04160,315,79422,774,0008,911,0002,523,136
4Jul 31, 2025 22:097,06956,304,72525,847,0005,964,0002,453,504
5Jul 31, 2025 22:097,07056,213,53022,866,0008,947,0002,457,600
6Jul 31, 2025 22:097,07159,393,97424,859,0006,960,0002,371,584
7Jul 31, 2025 22:097,08759,794,98722,921,0008,969,0002,453,504
8Jul 31, 2025 22:097,10158,399,73425,962,0005,991,0002,289,664
9Jul 31, 2025 22:097,10966,720,27025,992,0005,998,0002,453,504