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 13:15Aniruddha DebAniruddha DebScore: 6,188Success
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 10:016,15150,859,92617,428,00010,251,0002,297,856
2Aug 16, 2025 10:016,15452,018,90415,825,00011,869,0002,457,600
3Aug 16, 2025 09:596,15750,907,45915,833,00011,875,0002,289,664
4Aug 16, 2025 09:596,18454,084,11714,908,00012,920,0002,453,504
5Aug 16, 2025 09:596,18655,570,38219,884,0007,953,0002,400,256
6Aug 16, 2025 09:596,18753,495,04916,905,00010,938,0002,289,664
7Aug 16, 2025 09:596,18853,577,88219,890,0007,956,0002,453,504
8Aug 16, 2025 13:156,18849,303,16316,908,00010,940,0002,277,376
9Aug 16, 2025 13:156,19155,302,74716,916,00010,945,0002,334,720
10Aug 16, 2025 09:596,19455,010,95216,924,00010,951,0002,457,600
11Aug 16, 2025 13:156,19455,323,47017,919,0009,955,0002,400,256
12Aug 16, 2025 09:596,19859,471,56915,937,00011,953,0002,400,256
13Aug 16, 2025 09:596,21354,308,11514,978,00012,980,0002,289,664
14Aug 16, 2025 10:016,22452,143,51914,004,00014,004,0002,400,256
15Aug 16, 2025 09:596,23248,273,17018,029,00010,016,0002,404,352