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 listAug 16, 2025 08:41Aniruddha DebAniruddha DebScore: 6,634Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 16, 2025 08:416,61050,191,86724,789,0004,957,0002,277,376
2Aug 16, 2025 08:416,61654,534,35624,810,0004,962,0002,334,720
3Aug 16, 2025 08:416,62260,074,40625,828,0003,973,0002,457,600
4Aug 16, 2025 08:416,62552,827,01824,845,0004,969,0002,289,664
5Aug 16, 2025 08:406,63055,244,35124,864,0004,972,0002,289,664
6Aug 16, 2025 08:406,63155,286,98824,866,0004,973,0002,461,696
7Aug 16, 2025 08:416,63457,648,51124,877,0004,975,0002,449,408
8Aug 16, 2025 08:416,63457,077,58423,883,0005,970,0002,453,504
9Aug 16, 2025 08:416,64161,399,77123,908,0005,977,0002,457,600
10Aug 16, 2025 08:416,64451,685,96924,914,0004,982,0002,396,160
11Aug 16, 2025 08:406,64754,683,41625,924,0003,988,0002,457,600
12Aug 16, 2025 08:416,66662,017,23624,997,0004,999,0002,457,600