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 listMar 25, 2026 17:45Dominique GarmierDominique GarmierScore: 32,214Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2026 17:4532,181170,289,029142,818,0001,997,0002,473,984
2Mar 25, 2026 14:5832,183170,013,987143,826,000998,0002,531,328
3Mar 25, 2026 16:5732,183170,089,673142,826,0001,997,0002,277,376
4Mar 25, 2026 14:5832,184169,954,419143,831,000998,0002,277,376
5Mar 25, 2026 16:5732,189164,032,809142,852,0001,997,0002,277,376
6Mar 25, 2026 14:1132,210173,010,722142,948,0001,999,0002,277,376
7Mar 25, 2026 14:1132,214168,356,848142,965,0001,999,0002,277,376
8Mar 25, 2026 14:5832,218167,048,356143,975,0001,006,0002,465,792
9Mar 25, 2026 14:1132,224166,477,075143,007,0002,000,0002,277,376
10Mar 25, 2026 17:4532,225168,076,501143,012,0002,000,0002,465,792
11Mar 25, 2026 16:5732,233164,209,915144,047,0001,000,0002,478,080
12Mar 25, 2026 17:4532,334175,669,758145,501,00002,277,376