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 15, 2025 23:36Aniruddha DebAniruddha DebScore: 5,310Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 15, 2025 23:515,24746,750,22523,611,00002,428,928
2Nov 15, 2025 23:365,25151,981,76323,629,00002,433,024
3Nov 15, 2025 23:515,25252,124,66723,634,00002,420,736
4Nov 16, 2025 00:025,25748,588,64122,629,0001,028,0002,428,928
5Nov 15, 2025 23:515,26551,499,20723,694,00002,424,832
6Nov 15, 2025 23:515,26651,201,22523,699,00002,424,832
7Nov 15, 2025 23:515,26746,296,70122,673,0001,030,0002,433,024
8Nov 15, 2025 23:365,26847,618,52523,708,00002,531,328
9Nov 15, 2025 23:515,27046,766,24123,715,00002,531,328
10Nov 15, 2025 23:365,30751,548,73323,882,00002,428,928
11Nov 16, 2025 00:025,31049,996,08321,906,0001,991,0002,510,848
12Nov 16, 2025 00:025,35947,161,75023,111,0001,004,0002,531,328
13Nov 15, 2025 23:365,37443,150,65222,169,0002,015,0002,510,848
14Nov 16, 2025 00:025,37448,024,66623,176,0001,007,0002,424,832
15Nov 15, 2025 23:365,69054,104,09624,583,0001,024,0002,433,024
16Nov 15, 2025 23:365,69251,854,46124,591,0001,024,0002,433,024
17Nov 16, 2025 00:025,69751,743,11925,635,00002,510,848
18Nov 16, 2025 00:025,69850,975,04525,639,00002,510,848
19Nov 15, 2025 23:515,72154,606,47125,745,00002,269,184
20Nov 15, 2025 23:515,74253,965,85724,846,000993,0002,531,328
21Nov 15, 2025 23:515,75248,609,75623,892,0001,991,0002,531,328