NERD SNIPE PROBLEM

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

GIVEN AN INTEGER a, FIND THE SMALLEST INTEGER b THAT MINIMIZES THE NUMBER OF SET BITS IN a * b

Options

exec is denied

rejudge feature is enabled

now post-mortem time, all source codes will be revealed

Sample input:_

455
246
361
220
220
340
262
264
191
280
7
87
373
28
253
498
87
207
27
381
395
401
449
395
412
117
309
318
424
463
7
413
196
488
209
194
450
232
237
267
234
295
311
385
392
468
393
210
307
129

Sample output:

1
19
8291289067184734560889602596684065441150553595609
7
7
1
281629680514649643
1
87839
1
1
3
262948296556077444865775361226862701746915023645443805
1
269397
8831418697
3
1583
19
1
83
3161223441965659355353374577
11564135542393825453297319218753
83
5
5
67869
7007
1266205
2319663
1
5
1
17602325
168346277937
172961
1
565
1203429
1
5
7
7
1
1
5
93876560171549881
1
7334852813307
1

Sample input:_

267
386
238
462
323
230
331
381
265
116
433
90
376
228
213
86
479
167
20
451
327
442
161
245
73
141
93
437
442
180
403
425
462
249
322
188
388
126
455
212
408
388
177
380
317
79
357
329
93
452

Sample output:

1
1458419568449
71
71
203
571
99
1
253241
565
158705489
1
11
9
77
3
601733561907743
791
1
75
51319
5
1
535
1
581
1
629011229
5
1
1
41
71
8831418697
1
11
172961
1
1
1266205
1
172961
3033169
5519
1152603814929734162621202549460791024965246485
13
13
25
1
145

Sample input:_

454
355
314
89
221
56
203
440
385
306
138
82
27
251
202
194
217
107
34
142
49
253
221
441
450
253
79
392
113
283
275
26
383
484
41
68
425
405
38
67
20
88
94
232
390
33
133
400
232
215

Sample output:

45747108885769406418770892768459
100427
427445
1
5
1
323
7
1
1
1
25
19
133683
11147523830125
172961
1
84179432287299
1
119
1
269397
5
1
1
269397
13
1
145
497305612563
1
5
5607007
297758653049289
25
1
41
61
27
128207979
1
3
11
565
1
1
1
41
565
3

Ranking

Perl _

RankUserSizeTimeDateStatistics
1tails1440.98772024/06/12 14:16:280B / 58B / 82B

Python3 _

RankUserSizeTimeDateStatistics
1xnor1122.35922024/06/19 16:58:010B / 63B / 43B
2bubbler1252.64572024/06/12 13:01:130B / 75B / 39B
3orthoplex1381.84482024/06/12 14:47:140B / 67B / 64B
4Dingledooper2650.27902024/06/11 13:15:540B / 112B / 70B

C _

RankUserSizeTimeDateStatistics
1tails2960.93612024/06/14 13:14:380B / 156B / 136B

sed _

RankUserSizeTimeDateStatistics
1McBusLuck11690.04442024/06/13 15:02:000B / 918B / 180B

Bash (builtins) _

RankUserSizeTimeDateStatistics
1tails2481.61852024/06/20 09:53:010B / 99B / 136B

bc _

RankUserSizeTimeDateStatistics
1McBusLuck22800.08422024/06/13 14:50:200B / 996B / 1155B

gs2 _

RankUserSizeTimeDateStatistics
1tails392.75112024/06/12 11:39:2218B / 12B / 8B
2whio (embed)700.88992024/06/15 01:53:4828B / 26B / 16B

Nibbles _

RankUserSizeTimeDateStatistics
1tails181.17142024/06/11 13:42:2216B / 1B / 1B

Language Ranking_

RankLangUserSizeScore
1Nibblestails1810000
2gs2tails394615
3Python3xnor1121607
4Perltails1441250
5Bash (builtins)tails248725
6Ctails296608
7sedMcBusLuck1169153
8bcMcBusLuck228078

return to the top page