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 listNov 19, 2025 18:09Yuriy LyfenkoYuriy LyfenkoScore: 3,012Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 19, 2025 18:093,00730,278,63312,491,0001,040,0002,531,328
2Nov 19, 2025 18:093,00829,297,60512,495,0001,041,0002,441,216
3Nov 19, 2025 18:093,00936,107,17413,541,00002,531,328
4Nov 19, 2025 18:093,01031,052,45213,543,00002,269,184
5Nov 19, 2025 18:093,01130,282,16912,506,0001,042,0002,437,120
6Nov 19, 2025 18:093,01229,793,17412,513,0001,042,0002,531,328
7Nov 19, 2025 18:093,01228,799,89912,513,0001,042,0002,441,216
8Nov 19, 2025 18:093,01233,969,79212,510,0001,042,0002,449,408
9Nov 19, 2025 18:093,01435,562,97412,522,0001,043,0002,445,312
10Nov 19, 2025 18:093,01435,041,87212,518,0001,043,0002,441,216
11Nov 19, 2025 18:093,01427,867,18512,521,0001,043,0002,433,024
12Nov 19, 2025 18:093,01839,573,11612,536,0001,044,0002,437,120
13Nov 19, 2025 18:093,02628,768,89612,570,0001,047,0002,531,328
14Nov 19, 2025 18:093,04440,645,97712,646,0001,053,0002,269,184
15Nov 19, 2025 18:093,04537,789,53512,649,0001,054,0002,531,328