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 listMay 9, 2024 21:11Joad NacerJoad NacerScore: 17,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 21:1110,110140,288,22745,495,37102,273,280
2May 9, 2024 21:1110,115109,456,92645,517,34002,281,472
3May 9, 2024 21:1110,135114,907,13445,605,64702,273,280
4May 9, 2024 21:1117,108261,400,40345,347,00031,638,00029,548,544
5May 9, 2024 21:1117,128267,498,78746,033,00031,045,00029,556,736
6May 9, 2024 21:1117,144263,584,67949,513,00027,635,00029,540,352
7May 9, 2024 21:1117,222261,317,19344,432,00033,066,00029,675,520
8May 9, 2024 21:1117,237264,275,68349,782,00027,785,00029,548,544
9May 9, 2024 21:1117,339271,311,12350,077,00027,950,00029,630,464
10May 9, 2024 21:1117,391265,045,50843,704,00034,557,00029,630,464
11May 9, 2024 21:1117,437266,085,57041,717,00036,750,00029,638,656
12May 9, 2024 21:1117,457266,655,13945,197,00033,360,00029,757,440