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 16, 2025 00:20Aniruddha DebAniruddha DebScore: 4,033Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 16, 2025 00:204,01141,184,37117,046,0001,002,0002,424,832
2Nov 16, 2025 00:204,01844,433,02617,079,0001,004,0002,531,328
3Nov 16, 2025 00:204,01833,453,22016,071,0002,008,0002,437,120
4Nov 16, 2025 00:204,02240,326,34117,093,0001,005,0002,437,120
5Nov 16, 2025 00:204,02439,885,02316,097,0002,012,0002,531,328
6Nov 16, 2025 00:204,02538,970,41917,105,0001,006,0002,514,944
7Nov 16, 2025 00:214,02938,601,85017,124,0001,007,0002,424,832
8Nov 16, 2025 00:204,02933,989,27417,124,0001,007,0002,420,736
9Nov 16, 2025 00:204,02938,483,82316,118,0002,014,0002,531,328
10Nov 16, 2025 00:204,02940,012,96717,123,0001,007,0002,433,024
11Nov 16, 2025 00:214,03343,582,73517,139,0001,008,0002,433,024
12Nov 16, 2025 00:204,14842,360,12317,630,0001,037,0002,433,024
13Nov 16, 2025 00:204,20143,525,66216,916,0001,990,0002,424,832
14Nov 16, 2025 00:204,21041,211,12217,946,000997,0002,428,928
15Nov 16, 2025 00:204,21442,438,13317,964,000998,0002,531,328
16Nov 16, 2025 00:204,21539,625,83916,970,0001,996,0002,531,328
17Nov 16, 2025 00:204,22043,131,23217,990,000999,0002,527,232
18Nov 16, 2025 00:204,22341,021,82318,003,0001,000,0002,433,024
19Nov 16, 2025 00:204,23346,570,87318,045,0001,002,0002,428,928
20Nov 16, 2025 00:204,23541,042,73418,054,0001,003,0002,531,328
21Nov 16, 2025 00:214,25440,203,14418,136,0001,007,0002,531,328