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 listApr 14, 2026 00:32Josu San MartinJosu San MartinScore: 4,537Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 14, 2026 00:324,50344,646,71118,236,0002,026,0002,281,472
2Apr 14, 2026 00:324,50744,209,77719,266,0001,014,0002,445,312
3Apr 14, 2026 00:324,51043,486,27419,279,0001,014,0002,281,472
4Apr 14, 2026 01:294,51242,462,08319,290,0001,015,0002,445,312
5Apr 14, 2026 00:324,51539,998,04019,301,0001,015,0002,281,472
6Apr 15, 2026 03:094,51749,145,73819,310,0001,016,0002,277,376
7Apr 14, 2026 00:324,51852,409,73019,314,0001,016,0002,281,472
8Apr 14, 2026 00:324,51843,818,90819,317,0001,016,0002,277,376
9Apr 14, 2026 01:294,52140,738,15219,328,0001,017,0002,277,376
10Apr 14, 2026 00:324,52244,725,63319,330,0001,017,0002,445,312
11Apr 14, 2026 00:324,53041,129,26319,367,0001,019,0002,441,216
12Apr 14, 2026 00:324,53341,699,59619,380,0001,020,0002,441,216
13Apr 15, 2026 03:094,53441,782,23919,381,0001,020,0002,281,472
14Apr 14, 2026 00:324,53445,719,81119,381,0001,020,0002,445,312
15Apr 14, 2026 00:324,53540,221,48919,387,0001,020,0002,281,472
16Apr 14, 2026 00:324,53640,723,07119,391,0001,020,0002,445,312
17Apr 14, 2026 00:324,53648,498,70419,394,0001,020,0002,281,472
18Apr 14, 2026 00:324,53743,134,29319,396,0001,020,0002,281,472
19Apr 14, 2026 00:324,53751,766,87019,395,0001,020,0002,281,472
20Apr 14, 2026 00:324,53741,887,99119,396,0001,020,0002,281,472
21Apr 14, 2026 00:324,54043,227,45919,409,0001,021,0002,445,312
22Apr 14, 2026 00:324,54542,172,39019,430,0001,022,0002,281,472
23Apr 14, 2026 00:324,54635,310,86019,435,0001,022,0002,523,136
24Apr 14, 2026 00:324,55042,685,53719,451,0001,023,0002,277,376
25Apr 14, 2026 01:294,55052,299,44019,454,0001,023,0002,281,472
26Apr 14, 2026 00:324,55043,406,44319,451,0001,023,0002,445,312
27Apr 14, 2026 00:324,55049,044,76219,450,0001,023,0002,441,216
28Apr 14, 2026 00:324,55348,492,12120,487,00002,445,312
29Apr 14, 2026 00:324,55438,424,61319,468,0001,024,0002,277,376
30Apr 15, 2026 03:094,56948,078,96719,533,0001,028,0002,281,472
31Apr 14, 2026 00:324,57138,581,32820,570,00002,453,504
32Apr 14, 2026 00:324,57250,301,53819,544,0001,028,0002,281,472
33Apr 14, 2026 00:324,57645,851,49419,565,0001,029,0002,281,472
34Apr 14, 2026 00:324,59148,803,44619,628,0001,033,0002,281,472
35Apr 14, 2026 00:324,64248,342,21318,902,0001,989,0002,281,472
36Apr 14, 2026 00:324,65348,038,14918,945,0001,994,0002,281,472