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 20, 2026 22:00Dominique GarmierDominique GarmierScore: 344,685Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 17:34343,8201,570,534,9181,545,194,0001,998,0002,289,664
2Mar 20, 2026 17:34343,8981,569,731,4561,546,542,000999,0002,281,472
3Mar 21, 2026 01:14343,9131,574,347,3021,546,611,000999,0002,285,568
4Mar 20, 2026 17:34343,9291,571,312,3421,545,684,0001,998,0002,281,472
5Mar 21, 2026 01:14343,9761,575,555,8061,545,896,0001,998,0002,355,200
6Mar 21, 2026 01:14344,1601,578,061,8831,548,718,00002,359,296
7Mar 20, 2026 20:53344,6851,589,945,7181,550,086,000997,0002,281,472
8Mar 20, 2026 20:53344,7771,577,638,8751,550,498,000999,0002,355,200
9Mar 20, 2026 22:00344,9191,574,730,1081,549,139,0002,998,0002,363,392
10Mar 20, 2026 22:00345,0541,585,137,3281,550,749,0001,993,0002,289,664
11Mar 20, 2026 20:53345,3471,611,496,3971,554,061,00002,289,664
12Mar 20, 2026 22:00345,8111,588,876,2001,554,153,0001,996,0002,281,472