mirror of
https://github.com/alantang1977/hipy.git
synced 2024-11-22 14:46:56 +02:00
1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
|
ZnVuY3Rpb24gc3RyMmJpbmwoZCkgewogICAgZm9yICh2YXIgXyA9IEFycmF5KCksIG0gPSAoMSA8PCA4KSAtIDEsIHIgPSAwOyByIDwgZC5sZW5ndGggKiA4OyByICs9IDgpCiAgICAgICAgX1tyID4+IDVdIHw9IChkLmNoYXJDb2RlQXQociAvIDgpICYgbSkgPDwgciAlIDMyOwogICAgcmV0dXJuIF8KfQoKZnVuY3Rpb24gYmlubDJoZXgoZCkgewogICAgZm9yICh2YXIgXyA9IDAgPyAiMDEyMzQ1Njc4OUFCQ0RFRiIgOiAiMDEyMzQ1Njc4OWFiY2RlZiIsIG0gPSAiIiwgciA9IDA7IHIgPCA0ICogZC5sZW5ndGg7IHIrKykKICAgICAgICBtICs9IF8uY2hhckF0KGRbciA+PiAyXSA+PiByICUgNCAqIDggKyA0ICYgMTUpICsgXy5jaGFyQXQoZFtyID4+IDJdID4+IHIgJSA0ICogOCAmIDE1KTsKICAgIHJldHVybiBtCn0KCmZ1bmN0aW9uIGNvcmVfbWQ1KGQsIF8pIHsKICAgIGRbXyA+PiA1XSB8PSAxMjggPDwgXyAlIDMyLAogICAgICAgIGRbMTQgKyAoXyArIDY0ID4+PiA5IDw8IDQpXSA9IF87CiAgICBmb3IgKHZhciBtID0gMTczMjU4NDE5MywgciA9IC0yNzE3MzM4NzksIG4gPSAtMTczMjU4NDE5NCwgaCA9IDI3MTczMzg3OCwgZiA9IDA7IGYgPCBkLmxlbmd0aDsgZiArPSAxNikgewogICAgICAgIHZhciBpID0gbQogICAgICAgICAgICAsIHQgPSByCiAgICAgICAgICAgICwgYyA9IG4KICAgICAgICAgICAgLCBlID0gaDsKICAgICAgICBtID0gbWQ1X2ZmKG0sIHIsIG4sIGgsIGRbZiArIDBdLCA3LCAtNjgwODc2OTM2KSwKICAgICAgICAgICAgaCA9IG1kNV9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