Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Date AuthorLanguageStatus Score
Oct 31, 2026 02:48Andrew EpsteinAndrew EpsteinCSHARP9.0.18Success1,691
Oct 31, 2026 02:48Andrew EpsteinAndrew EpsteinZIG0.15.1Success1,513
Oct 31, 2026 02:48Andrew EpsteinAndrew EpsteinGOgo1.26.2Success1,550
Oct 31, 2026 02:47Andrew EpsteinAndrew EpsteinRUSTrust-1.95.0Success1,575
Oct 31, 2026 02:47Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success1,498+169.39 RP
Oct 31, 2026 02:38Andrew EpsteinAndrew EpsteinZIG0.15.1Success1,557
Oct 31, 2026 02:38Andrew EpsteinAndrew EpsteinRUSTrust-1.95.0Success1,609
Oct 31, 2026 02:37Andrew EpsteinAndrew EpsteinCSHARP9.0.18Success1,627
Oct 31, 2026 02:37Andrew EpsteinAndrew EpsteinGOgo1.26.2Success1,585
Oct 31, 2026 02:37Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success1,558
Oct 31, 2026 02:32Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success341,237
Oct 31, 2026 02:32Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success1,580
Oct 31, 2026 02:27Andrew EpsteinAndrew EpsteinZIG0.15.1Success1,541
Oct 31, 2026 02:27Andrew EpsteinAndrew EpsteinGOgo1.26.2Success1,606
Oct 31, 2026 02:27Andrew EpsteinAndrew EpsteinRUSTrust-1.95.0Success1,653
Oct 31, 2026 02:26Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success1,537+228.72 RP
Oct 31, 2026 02:24Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success319,209
Oct 31, 2026 02:23Andrew EpsteinAndrew EpsteinCSHARP9.0.18Success1,874
Oct 31, 2026 02:20Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success339,790
Oct 31, 2026 02:08Andrew EpsteinAndrew EpsteinCPPg++13.3.0Error
Oct 31, 2026 02:00Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success1,593+62.42 RP
Oct 31, 2026 01:58Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success340,472
Oct 31, 2026 01:52Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success340,510
Oct 31, 2026 01:42Andrew EpsteinAndrew EpsteinCPPg++13.3.0Success1,609+4'871.86 RP
Oct 24, 2026 20:44janwwwjanwwwCSHARP9.0.15Success5,549
Oct 24, 2026 19:56janwwwjanwwwRUSTrust-1.95.0Success5,547
Oct 24, 2026 19:47janwwwjanwwwZIG0.15.1Success5,168
Oct 20, 2026 20:52janwwwjanwwwCPPg++14.2.0Success5,139
Oct 20, 2026 20:25janwwwjanwwwCPPg++14.2.0Success5,117
Oct 19, 2026 04:09zayd-ansari-codezayd-ansari-codeCPPg++10.5.0Success213,419+46.86 RP
Oct 19, 2026 03:47highload-churnerhighload-churnerCPPg++13.3.0Success1,474
Oct 19, 2026 03:45highload-churnerhighload-churnerCPPg++13.3.0Success1,486
Oct 19, 2026 03:42highload-churnerhighload-churnerCPPg++13.3.0Success1,468
Oct 19, 2026 03:39highload-churnerhighload-churnerCPPg++13.3.0Success1,477
Oct 19, 2026 03:35highload-churnerhighload-churnerCPPg++13.3.0Success1,471
Oct 19, 2026 03:30highload-churnerhighload-churnerCPPg++13.3.0Success1,463+65.10 RP
Oct 19, 2026 03:27highload-churnerhighload-churnerCPPg++13.3.0Success1,473
Oct 19, 2026 03:24highload-churnerhighload-churnerCPPg++13.3.0Success1,480
Oct 19, 2026 03:20highload-churnerhighload-churnerCPPg++13.3.0Success1,470+64.42 RP
Oct 19, 2026 03:16highload-churnerhighload-churnerCPPg++13.3.0Success1,487
Oct 19, 2026 02:58highload-churnerhighload-churnerCPPg++13.3.0Success1,480+45.35 RP
Oct 19, 2026 02:54highload-churnerhighload-churnerCPPg++13.3.0Success1,490+9.00 RP
Oct 19, 2026 02:51highload-churnerhighload-churnerCPPg++13.3.0Success1,492+49.05 RP
Oct 19, 2026 02:42highload-churnerhighload-churnerCPPg++13.3.0Success1,512
Oct 19, 2026 02:30highload-churnerhighload-churnerCPPg++13.3.0Success1,503+205.91 RP
Oct 19, 2026 02:11highload-churnerhighload-churnerCPPg++13.3.0Success1,551+118.34 RP
Oct 19, 2026 02:09highload-churnerhighload-churnerCPPg++13.3.0Success1,590
Oct 19, 2026 02:07highload-churnerhighload-churnerCPPg++13.3.0Success1,632
Oct 19, 2026 01:49highload-churnerhighload-churnerCPPg++13.3.0Error
Oct 19, 2026 01:48highload-churnerhighload-churnerCPPg++13.3.0Error
Oct 19, 2026 01:45highload-churnerhighload-churnerCPPg++13.3.0Success1,580+141.00 RP
Oct 19, 2026 01:42highload-churnerhighload-churnerCPPg++13.3.0Success1,616+196.51 RP
Oct 19, 2026 01:12highload-churnerhighload-churnerCPPg++13.3.0Success1,669+105.80 RP
Oct 19, 2026 01:07highload-churnerhighload-churnerCPPg++13.3.0Success1,699+3'428.21 RP
Oct 17, 2026 09:55KacpxerKacpxerCPPclang++20.1.2Success12,385+807.43 RP
Oct 17, 2026 03:33highload-churnerhighload-churnerCPPg++13.3.0Success6,358
Oct 17, 2026 03:29highload-churnerhighload-churnerCPPg++13.3.0Success6,372
Oct 16, 2026 12:09highload-churnerhighload-churnerCPPg++13.3.0Success6,360
Oct 16, 2026 11:50highload-churnerhighload-churnerCPPg++13.3.0Success6,446
Oct 16, 2026 11:27highload-churnerhighload-churnerCPPg++13.3.0Success6,596
Oct 16, 2026 11:12highload-churnerhighload-churnerCPPg++13.3.0Success6,882
Oct 16, 2026 06:11highload-churnerhighload-churnerCPPg++13.3.0Success6,966
Oct 16, 2026 04:48highload-churnerhighload-churnerCPPg++13.3.0Success7,832
Oct 16, 2026 04:27highload-churnerhighload-churnerCPPg++13.3.0Success7,228
Oct 14, 2026 00:27highload-churnerhighload-churnerCPPg++13.3.0Success4,069+45.64 RP
Oct 14, 2026 00:24highload-churnerhighload-churnerCPPg++13.3.0Success4,146+1'482.34 RP
Oct 12, 2026 21:49janwwwjanwwwCPPg++14.2.0Error+1'112.22 RP
Oct 12, 2026 03:02highload-churnerhighload-churnerCPPg++13.3.0Success10,757+1.64 RP
Oct 10, 2026 00:49highload-churnerhighload-churnerCPPg++13.3.0Success12,729
Oct 10, 2026 00:47highload-churnerhighload-churnerCPPg++13.3.0Success12,177
Oct 10, 2026 00:30highload-churnerhighload-churnerCPPg++13.3.0Success13,018
Oct 10, 2026 00:14highload-churnerhighload-churnerCPPg++13.3.0Error+113.39 RP
Oct 9, 2026 23:54janwwwjanwwwCPPg++14.2.0Error+2'561.41 RP
Oct 9, 2026 23:36janwwwjanwwwCPPg++14.2.0Success38,844
Oct 9, 2026 23:21janwwwjanwwwCPPg++14.2.0Success24,242
Oct 9, 2026 22:59highload-churnerhighload-churnerCPPg++13.3.0Success12,276+22.89 RP
Oct 9, 2026 22:53janwwwjanwwwCPPg++14.2.0Success10,086
Oct 9, 2026 21:51janwwwjanwwwCPPg++14.2.0Error+1'839.90 RP
Oct 9, 2026 21:23highload-churnerhighload-churnerCPPg++13.3.0Success32,088
Oct 9, 2026 21:20highload-churnerhighload-churnerCPPg++13.3.0Success33,980
Oct 9, 2026 19:57highload-churnerhighload-churnerCPPg++13.3.0Success15,015
Oct 9, 2026 19:52highload-churnerhighload-churnerCPPg++13.3.0Success12,631+3.00 RP
Oct 9, 2026 19:34highload-churnerhighload-churnerCPPg++13.3.0Success17,555
Oct 9, 2026 19:26highload-churnerhighload-churnerCPPg++13.3.0Success19,997
Oct 9, 2026 19:25highload-churnerhighload-churnerCPPg++13.3.0Success16,555
Oct 9, 2026 18:56highload-churnerhighload-churnerCPPg++13.3.0Success12,679+16.21 RP
Oct 9, 2026 18:43highload-churnerhighload-churnerCPPg++13.3.0Error+120.40 RP
Oct 9, 2026 18:20highload-churnerhighload-churnerCPPg++13.3.0Success15,364
Oct 9, 2026 18:09highload-churnerhighload-churnerCPPg++13.3.0Success15,335+11.24 RP
Oct 9, 2026 17:46highload-churnerhighload-churnerCPPg++13.3.0Success15,637
Oct 9, 2026 16:48highload-churnerhighload-churnerCPPg++13.3.0Success15,684
Oct 9, 2026 16:19highload-churnerhighload-churnerCPPg++13.3.0Success17,115
Oct 9, 2026 15:56highload-churnerhighload-churnerCPPg++13.3.0Success16,083
Oct 9, 2026 15:09highload-churnerhighload-churnerCPPg++13.3.0Success15,842
Oct 9, 2026 14:10highload-churnerhighload-churnerCPPg++13.3.0Error+117.52 RP
Oct 9, 2026 14:02highload-churnerhighload-churnerCPPg++13.3.0Success22,754
Oct 9, 2026 13:32highload-churnerhighload-churnerCPPg++13.3.0Success19,252
Oct 9, 2026 13:01highload-churnerhighload-churnerCPPg++13.3.0Error+82.85 RP
Oct 9, 2026 12:21highload-churnerhighload-churnerCPPg++13.3.0Success22,702+440.49 RP
Oct 9, 2026 08:51Karthik ReddyKarthik ReddyZIG0.15.1Success1,464+375.31 RP