結果
問題 | No.821 Making Integers |
ユーザー | Goryudyuma |
提出日時 | 2019-04-26 22:57:06 |
言語 | JavaScript (node v21.7.1) |
結果 |
AC
|
実行時間 | 98 ms / 2,000 ms |
コード長 | 22,313 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 45,608 KB |
最終ジャッジ日時 | 2024-10-13 01:07:02 |
合計ジャッジ時間 | 1,568 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 91 ms
44,160 KB |
testcase_01 | AC | 94 ms
45,440 KB |
testcase_02 | AC | 98 ms
44,416 KB |
testcase_03 | AC | 93 ms
45,312 KB |
testcase_04 | AC | 87 ms
44,456 KB |
testcase_05 | AC | 94 ms
45,184 KB |
testcase_06 | AC | 98 ms
45,608 KB |
testcase_07 | AC | 97 ms
45,352 KB |
testcase_08 | AC | 92 ms
44,712 KB |
ソースコード
!function(n){var r={};function t(u){if(r[u])return r[u].exports;var e=r[u]={i:u,l:!1,exports:{}};return n[u].call(e.exports,e,e.exports,t),e.l=!0,e.exports}t.m=n,t.c=r,t.d=function(n,r,u){t.o(n,r)||Object.defineProperty(n,r,{enumerable:!0,get:u})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,r){if(1&r&&(n=t(n)),8&r)return n;if(4&r&&"object"==typeof n&&n&&n.__esModule)return n;var u=Object.create(null);if(t.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:n}),2&r&&"string"!=typeof n)for(var e in n)t.d(u,e,function(r){return n[r]}.bind(null,e));return u},t.n=function(n){var r=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(r,"a",r),r},t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)},t.p="",t(t.s=0)}([function(n,r,t){n.exports=t(1)},function(n,r,t){const u=t(2).createInterface(process.stdin,{}),{Elm:e}=t(3),f=e.Worker.init();f.ports.cout.subscribe(n=>{console.log(n)}),u.on("line",n=>{f.ports.cin.send(n)})},function(n,r){n.exports=require("readline")},function(n,r){!function(n){"use strict";function r(n,r,t){return t.a=n,t.f=r,t}function t(n){return r(2,n,function(r){return function(t){return n(r,t)}})}function u(n){return r(3,n,function(r){return function(t){return function(u){return n(r,t,u)}}})}function e(n){return r(4,n,function(r){return function(t){return function(u){return function(e){return n(r,t,u,e)}}}})}function f(n){return r(5,n,function(r){return function(t){return function(u){return function(e){return function(f){return n(r,t,u,e,f)}}}}})}function i(n){return r(6,n,function(r){return function(t){return function(u){return function(e){return function(f){return function(i){return n(r,t,u,e,f,i)}}}}}})}function o(n,r,t){return 2===n.a?n.f(r,t):n(r)(t)}function c(n,r,t,u){return 3===n.a?n.f(r,t,u):n(r)(t)(u)}function a(n,r,t,u,e){return 4===n.a?n.f(r,t,u,e):n(r)(t)(u)(e)}function b(n,r,t,u,e,f){return 5===n.a?n.f(r,t,u,e,f):n(r)(t)(u)(e)(f)}var v={$:0};function s(n,r){return{$:1,a:n,b:r}}var l=t(s);function h(n){for(var r=v,t=n.length;t--;)r=s(n[t],r);return r}function d(n){for(var r=[];n.b;n=n.b)r.push(n.a);return r}var g=u(function(n,r,t){for(var u=[];r.b&&t.b;r=r.b,t=t.b)u.push(o(n,r.a,t.a));return h(u)});e(function(n,r,t,u){for(var e=[];r.b&&t.b&&u.b;r=r.b,t=t.b,u=u.b)e.push(c(n,r.a,t.a,u.a));return h(e)}),f(function(n,r,t,u,e){for(var f=[];r.b&&t.b&&u.b&&e.b;r=r.b,t=t.b,u=u.b,e=e.b)f.push(a(n,r.a,t.a,u.a,e.a));return h(f)}),i(function(n,r,t,u,e,f){for(var i=[];r.b&&t.b&&u.b&&e.b&&f.b;r=r.b,t=t.b,u=u.b,e=e.b,f=f.b)i.push(b(n,r.a,t.a,u.a,e.a,f.a));return h(i)}),t(function(n,r){return h(d(r).sort(function(r,t){return w(n(r),n(t))}))}),t(function(n,r){return h(d(r).sort(function(r,t){var u=o(n,r,t);return u===Tn?0:u===Sn?-1:1}))});function $(n,r){for(var t,u=[],e=p(n,r,0,u);e&&(t=u.pop());e=p(t.a,t.b,0,u));return e}function p(n,r,t,u){if(t>100)return u.push(j(n,r)),!0;if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&S(5),!1;for(var e in n.$<0&&(n=Jn(n),r=Jn(r)),n)if(!p(n[e],r[e],t+1,u))return!1;return!0}var y=t($);t(function(n,r){return!$(n,r)});function w(n,r,t){if("object"!=typeof n)return n===r?0:n<r?-1:1;if(void 0===n.$)return(t=w(n.a,r.a))?t:(t=w(n.b,r.b))?t:w(n.c,r.c);for(;n.b&&r.b&&!(t=w(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}t(function(n,r){return w(n,r)<0}),t(function(n,r){return w(n,r)<1}),t(function(n,r){return w(n,r)>0}),t(function(n,r){return w(n,r)>=0});var A=t(function(n,r){var t=w(n,r);return t<0?Sn:t?Nn:Tn}),O=0;function j(n,r){return{a:n,b:r}}function m(n){return n}function M(n,r){var t={};for(var u in n)t[u]=n[u];for(var u in r)t[u]=r[u];return t}t(x);function x(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=s(n.a,r);n=n.b;for(var u=t;n.b;n=n.b)u=u.b=s(n.a,r);return t}var C=u(function(n,r,t){for(var u=new Array(n),e=0;e<n;e++)u[e]=t(r+e);return u}),T=t(function(n,r){for(var t=new Array(n),u=0;u<n&&r.b;u++)t[u]=r.a,r=r.b;return t.length=u,j(t,r)}),N=(t(function(n,r){return r[n]}),u(function(n,r,t){for(var u=t.length,e=new Array(u),f=0;f<u;f++)e[f]=t[f];return e[n]=r,e}),t(function(n,r){for(var t=r.length,u=new Array(t+1),e=0;e<t;e++)u[e]=r[e];return u[t]=n,u}),u(function(n,r,t){for(var u=t.length,e=0;e<u;e++)r=o(n,t[e],r);return r}),u(function(n,r,t){for(var u=t.length-1;u>=0;u--)r=o(n,t[u],r);return r}));t(function(n,r){for(var t=r.length,u=new Array(t),e=0;e<t;e++)u[e]=n(r[e]);return u}),u(function(n,r,t){for(var u=t.length,e=new Array(u),f=0;f<u;f++)e[f]=o(n,r+f,t[f]);return e}),u(function(n,r,t){return t.slice(n,r)}),u(function(n,r,t){var u=r.length,e=n-u;e>t.length&&(e=t.length);for(var f=new Array(u+e),i=0;i<u;i++)f[i]=r[i];for(i=0;i<e;i++)f[i+u]=t[i];return f}),t(function(n,r){return r}),t(function(n,r){return console.log(n+": <internals>"),r});function S(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}var E=t(function(n,r){return n+r}),P=(t(function(n,r){return n-r}),t(function(n,r){return n*r})),J=(t(function(n,r){return n/r}),t(function(n,r){return n/r|0}),t(Math.pow));t(function(n,r){return r%n}),t(function(n,r){var t=r%n;return 0===n?S(11):t>0&&n<0||t<0&&n>0?t+n:t}),Math.PI,Math.E,Math.cos,Math.sin,Math.tan,Math.acos,Math.asin,Math.atan,t(Math.atan2);var I=Math.ceil,R=Math.floor,F=(Math.round,Math.sqrt,Math.log);isNaN;t(function(n,r){return n&&r}),t(function(n,r){return n||r}),t(function(n,r){return n!==r});var L=t(function(n,r){return n+r});t(function(n,r){return n+r});t(function(n,r){for(var t=r.length,u=new Array(t),e=0;e<t;){var f=r.charCodeAt(e);55296<=f&&f<=56319?(u[e]=n(m(r[e]+r[e+1])),e+=2):(u[e]=n(m(r[e])),e++)}return u.join("")}),t(function(n,r){for(var t=[],u=r.length,e=0;e<u;){var f=r[e],i=r.charCodeAt(e);e++,55296<=i&&i<=56319&&(f+=r[e],e++),n(m(f))&&t.push(f)}return t.join("")});u(function(n,r,t){for(var u=t.length,e=0;e<u;){var f=t[e],i=t.charCodeAt(e);e++,55296<=i&&i<=56319&&(f+=t[e],e++),r=o(n,m(f),r)}return r}),u(function(n,r,t){for(var u=t.length;u--;){var e=t[u],f=t.charCodeAt(u);56320<=f&&f<=57343&&(e=t[--u]+e),r=o(n,m(e),r)}return r});var _=t(function(n,r){return r.split(n)}),k=t(function(n,r){return r.join(n)});u(function(n,r,t){return t.slice(n,r)});t(function(n,r){for(var t=r.length;t--;){var u=r[t],e=r.charCodeAt(t);if(56320<=e&&e<=57343&&(u=r[--t]+u),n(m(u)))return!0}return!1});var q=t(function(n,r){for(var t=r.length;t--;){var u=r[t],e=r.charCodeAt(t);if(56320<=e&&e<=57343&&(u=r[--t]+u),!n(m(u)))return!1}return!0});t(function(n,r){return r.indexOf(n)>-1}),t(function(n,r){return 0===r.indexOf(n)}),t(function(n,r){return r.length>=n.length&&r.lastIndexOf(n)===r.length-n.length}),t(function(n,r){var t=n.length;if(t<1)return v;for(var u=0,e=[];(u=r.indexOf(n,u))>-1;)e.push(u),u+=t;return h(e)});function z(n){return{$:2,b:n}}z(function(n){return"number"!=typeof n?U("an INT",n):-2147483647<n&&n<2147483647&&(0|n)===n?ir(n):!isFinite(n)||n%1?U("an INT",n):ir(n)}),z(function(n){return"boolean"==typeof n?ir(n):U("a BOOL",n)}),z(function(n){return"number"==typeof n?ir(n):U("a FLOAT",n)}),z(function(n){return ir(X(n))});var B=z(function(n){return"string"==typeof n?ir(n):n instanceof String?ir(n+""):U("a STRING",n)});t(function(n,r){return{$:6,d:n,b:r}}),t(function(n,r){return{$:7,e:n,b:r}});function D(n,r){return{$:9,f:n,g:r}}t(function(n,r){return{$:10,b:r,h:n}});t(function(n,r){return D(n,[r])}),u(function(n,r,t){return D(n,[r,t])}),e(function(n,r,t,u){return D(n,[r,t,u])}),f(function(n,r,t,u,e){return D(n,[r,t,u,e])}),i(function(n,r,t,u,e,f){return D(n,[r,t,u,e,f])}),r(7,G=function(n,r,t,u,e,f,i){return D(n,[r,t,u,e,f,i])},function(n){return function(r){return function(t){return function(u){return function(e){return function(f){return function(i){return G(n,r,t,u,e,f,i)}}}}}}}),function(n){r(8,n,function(r){return function(t){return function(u){return function(e){return function(f){return function(i){return function(o){return function(c){return n(r,t,u,e,f,i,o,c)}}}}}}}})}(function(n,r,t,u,e,f,i,o){return D(n,[r,t,u,e,f,i,o])}),function(n){r(9,n,function(r){return function(t){return function(u){return function(e){return function(f){return function(i){return function(o){return function(c){return function(a){return n(r,t,u,e,f,i,o,c,a)}}}}}}}}})}(function(n,r,t,u,e,f,i,o,c){return D(n,[r,t,u,e,f,i,o,c])}),t(function(n,r){try{return W(n,JSON.parse(r))}catch(n){return fr(o(or,"This is not valid JSON! "+n.message,X(r)))}});var G,H=t(function(n,r){return W(n,Z(r))});function W(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?ir(n.c):U("null",r);case 3:return K(r)?Y(n.b,r,h):U("a LIST",r);case 4:return K(r)?Y(n.b,r,Q):U("an ARRAY",r);case 6:var t=n.d;if("object"!=typeof r||null===r||!(t in r))return U("an OBJECT with a field named `"+t+"`",r);var u=W(n.b,r[t]);return Cn(u)?u:fr(o(cr,t,u.a));case 7:var e=n.e;if(!K(r))return U("an ARRAY",r);if(e>=r.length)return U("a LONGER array. Need index "+e+" but only see "+r.length+" entries",r);u=W(n.b,r[e]);return Cn(u)?u:fr(o(ar,e,u.a));case 8:if("object"!=typeof r||null===r||K(r))return U("an OBJECT",r);var f=v;for(var i in r)if(r.hasOwnProperty(i)){u=W(n.b,r[i]);if(!Cn(u))return fr(o(cr,i,u.a));f=s(j(i,u.a),f)}return ir(Dn(f));case 9:for(var c=n.f,a=n.g,b=0;b<a.length;b++){u=W(a[b],r);if(!Cn(u))return u;c=c(u.a)}return ir(c);case 10:u=W(n.b,r);return Cn(u)?W(n.h(u.a),r):u;case 11:for(var l=v,d=n.g;d.b;d=d.b){u=W(d.a,r);if(Cn(u))return u;l=s(u.a,l)}return fr(br(Dn(l)));case 1:return fr(o(or,n.a,X(r)));case 0:return ir(n.a)}}function Y(n,r,t){for(var u=r.length,e=new Array(u),f=0;f<u;f++){var i=W(n,r[f]);if(!Cn(i))return fr(o(ar,f,i.a));e[f]=i.a}return ir(t(e))}function K(n){return Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList}function Q(n){return o(tr,n.length,function(r){return n[r]})}function U(n,r){return fr(o(or,"Expecting "+n,X(r)))}var V=t(function(n,r){return JSON.stringify(Z(r),null,n)+""});function X(n){return n}function Z(n){return n}u(function(n,r,t){return t[n]=Z(r),t});X(null);function nn(n){return{$:0,a:n}}function rn(n){return{$:2,b:n,c:null}}var tn=t(function(n,r){return{$:3,b:n,d:r}});t(function(n,r){return{$:4,b:n,d:r}});var un=0;function en(n){var r={$:0,e:un++,f:n,g:null,h:[]};return bn(r),r}function fn(n,r){n.h.push(r),bn(n)}var on=t(function(n,r){return rn(function(t){fn(n,r),t(nn(O))})});var cn=!1,an=[];function bn(n){if(an.push(n),!cn){for(cn=!0;n=an.shift();)vn(n);cn=!1}}function vn(n){for(;n.f;){var r=n.f.$;if(0===r||1===r){for(;n.g&&n.g.$!==r;)n.g=n.g.i;if(!n.g)return;n.f=n.g.b(n.f.a),n.g=n.g.i}else{if(2===r)return void(n.f.c=n.f.b(function(r){n.f=r,bn(n)}));if(5===r){if(0===n.h.length)return;n.f=n.f.b(n.h.shift())}else n.g={$:3===r?0:1,b:n.f.b,i:n.g},n.f=n.f.d}}}var sn=e(function(n,r,t,u){return function(n,r,t,u,e,f){var i=o(H,n,X(r?r.flags:void 0));Cn(i)||S(2);var c={},a=(i=t(i.a)).a,b=f(s,a),v=function(n,r){var t;for(var u in ln){var e=ln[u];e.a&&((t=t||{})[u]=e.a(u,r)),n[u]=hn(e,r)}return t}(c,s);function s(n,r){i=o(u,n,a),b(a=i.a,r),gn(c,i.b,e(a))}return gn(c,i.b,e(a)),v?{ports:v}:{}}(r,u,n.aw,n.aH,n.aF,function(){return function(){}})});var ln={};function hn(n,r){var t={g:r,h:void 0},u=n.c,e=n.d,f=n.e,i=n.f;return t.h=en(o(tn,function n(r){return o(tn,n,{$:5,b:function(n){var o=n.a;return 0===n.$?c(e,t,o,r):f&&i?a(u,t,o.i,o.j,r):c(u,t,f?o.i:o.j,r)}})},n.b))}t(function(n,r){return rn(function(t){n.g(r),t(nn(O))})}),t(function(n,r){return o(on,n.h,{$:0,a:r})});function dn(n){return function(r){return{$:1,k:n,l:r}}}t(function(n,r){return{$:3,n:n,o:r}});function gn(n,r,t){var u={};for(var e in $n(!0,r,u,null),$n(!1,t,u,null),n)fn(n[e],{$:"fx",a:u[e]||{i:v,j:v}})}function $n(n,r,t,u){switch(r.$){case 1:var e=r.k,f=function(n,r,t,u){return o(n?ln[r].e:ln[r].f,function(n){for(var r=t;r;r=r.q)n=r.p(n);return n},u)}(n,e,u,r.l);return void(t[e]=function(n,r,t){return t=t||{i:v,j:v},n?t.i=s(r,t.i):t.j=s(r,t.j),t}(n,f,t[e]));case 2:for(var i=r.m;i.b;i=i.b)$n(n,i.a,t,u);return;case 3:return void $n(n,r.o,t,{p:r.n,q:u})}}function pn(n){ln[n]&&S(3)}var yn=t(function(n,r){return r});function wn(n){var r,t=[],e=ln[n].r,f=(r=0,rn(function(n){var t=setTimeout(function(){n(nn(O))},r);return function(){clearTimeout(t)}}));return ln[n].b=f,ln[n].c=u(function(n,r,u){for(;r.b;r=r.b)for(var i=t,o=Z(e(r.a)),c=0;c<i.length;c++)i[c](o);return f}),{subscribe:function(n){t.push(n)},unsubscribe:function(n){var r=(t=t.slice()).indexOf(n);r>=0&&t.splice(r,1)}}}var An=t(function(n,r){return function(t){return n(r(t))}});function On(n,r){var t=v,e=ln[n].r,f=nn(null);return ln[n].b=f,ln[n].c=u(function(n,r,u){return t=r,f}),{send:function(n){var u=o(H,e,X(n));Cn(u)||S(4,u.a);for(var f=u.a,i=t;i.b;i=i.b)r(i.a(f))}}}t(function(n,r){return n&r}),t(function(n,r){return n|r}),t(function(n,r){return n^r});t(function(n,r){return r<<n}),t(function(n,r){return r>>n}),t(function(n,r){return r>>>n});var jn,mn,Mn,xn,Cn=function(n){return!n.$},Tn=1,Nn=2,Sn=0,En=u(function(n,r,t){for(;;){if(-2===t.$)return r;var u=t.b,e=t.c,f=t.d,i=t.e,o=n,a=c(n,u,e,c(En,n,r,i));n=o,r=a,t=f}}),Pn=l,Jn=function(n){return c(En,u(function(n,r,t){return o(Pn,j(n,r),t)}),v,n)},In=N,Rn=(u(function(n,r,u){var e=u.c,f=u.d,i=t(function(r,t){if(r.$){var u=r.a;return c(In,n,t,u)}var e=r.a;return c(In,i,t,e)});return c(In,i,c(In,n,r,f),e)}),e(function(n,r,t,u){return{$:0,a:n,b:r,c:t,d:u}})),Fn=I,Ln=t(function(n,r){return F(r)/F(n)}),_n=Fn(o(Ln,2,32)),kn=[],qn=a(Rn,0,_n,kn,kn),zn=T,Bn=u(function(n,r,t){for(;;){if(!t.b)return r;var u=t.a,e=t.b,f=n,i=o(n,u,r);n=f,r=i,t=e}}),Dn=function(n){return c(Bn,Pn,v,n)},Gn=t(function(n,r){for(;;){var t=o(zn,32,n),u=t.a,e=t.b,f=o(Pn,{$:0,a:u},r);if(!e.b)return Dn(f);n=e,r=f}}),Hn=(t(function(n,r){return r(n)}),y),Wn=function(n){return n.a},Yn=t(function(n,r){for(;;){var t=Fn(r/32);if(1===t)return o(zn,32,n).a;n=o(Gn,n,v),r=t}}),Kn=E,Qn=(t(function(n,r){return n(r)}),R),Un=t(function(n,r){return w(n,r)>0?n:r}),Vn=P,Xn=function(n){return n.length},Zn=t(function(n,r){if(r.a){var t=32*r.a,u=Qn(o(Ln,32,t-1)),e=n?Dn(r.d):r.d,f=o(Yn,e,r.a);return a(Rn,Xn(r.c)+t,o(Un,5,u*_n),f,r.c)}return a(Rn,Xn(r.c),_n,kn,r.c)}),nr=C,rr=f(function(n,r,t,u,e){for(;;){if(r<0)return o(Zn,!1,{d:u,a:t/32|0,c:e});var f={$:1,a:c(nr,32,r,n)};n=n,r=r-32,t=t,u=o(Pn,f,u),e=e}}),tr=t(function(n,r){if(n<=0)return qn;var t=n%32,u=c(nr,t,n-t,r);return b(rr,r,n-t-32,n,v,u)}),ur=function(n){return{$:0,a:n}},er={$:1},fr=function(n){return{$:1,a:n}},ir=function(n){return{$:0,a:n}},or=t(function(n,r){return{$:3,a:n,b:r}}),cr=t(function(n,r){return{$:0,a:n,b:r}}),ar=t(function(n,r){return{$:1,a:n,b:r}}),br=function(n){return{$:2,a:n}},vr=function(n){var r=n.charCodeAt(0);return 55296<=r&&r<=56319?1024*(r-55296)+n.charCodeAt(1)-56320+65536:r},sr=function(n){var r=vr(n);return 97<=r&&r<=122},lr=function(n){var r=vr(n);return r<=90&&65<=r},hr=function(n){return sr(n)||lr(n)},dr=function(n){return sr(n)||lr(n)||function(n){var r=vr(n);return r<=57&&48<=r}(n)},gr=function(n){return c(Bn,t(function(n,r){return r+1}),0,n)},$r=g,pr=u(function(n,r,t){for(;;){if(!(w(n,r)<1))return t;var u=n,e=r-1,f=o(Pn,r,t);n=u,r=e,t=f}}),yr=t(function(n,r){return c(pr,n,r,v)}),wr=t(function(n,r){return c($r,n,o(yr,0,gr(r)-1),r)}),Ar=q,Or=function(n){return n+""},jr=t(function(n,r){return o(k,n,d(r))}),mr=function(n){var r=n.charCodeAt(0);return r?ur(55296<=r&&r<=56319?j(m(n[0]+n[1]),n.slice(2)):j(m(n[0]),n.slice(1))):er},Mr=t(function(n,r){return h(o(_,n,r))}),xr=function(n){return o(jr,"\n ",o(Mr,"\n",n))},Cr=V,Tr=t(function(n,r){return"\n\n("+Or(n+1)+") "+xr(Nr(r))}),Nr=function(n){return o(Sr,n,v)},Sr=t(function(n,r){n:for(;;)switch(n.$){case 0:var t=n.a,u=n.b,e=function(){var n=mr(t);if(1===n.$)return!1;var r=n.a,u=r.a,e=r.b;return hr(u)&&o(Ar,dr,e)}(),f=u,i=o(Pn,e?"."+t:"['"+t+"']",r);n=f,r=i;continue n;case 1:var c=n.a,a=(u=n.b,"["+Or(c)+"]");f=u,i=o(Pn,a,r);n=f,r=i;continue n;case 2:var b=n.a;if(b.b){if(b.b.b){var v=(r.b?"The Json.Decode.oneOf at json"+o(jr,"",Dn(r)):"Json.Decode.oneOf")+" failed in the following "+Or(gr(b))+" ways:";return o(jr,"\n\n",o(Pn,v,o(wr,Tr,b)))}n=f=u=b.a,r=i=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+o(jr,"",Dn(r)):"!");default:var s=n.a,l=n.b;return(v=r.b?"Problem with the value at json"+o(jr,"",Dn(r))+":\n\n ":"Problem with the given value:\n\n")+(xr(o(Cr,4,l))+"\n\n")+s}}),Er=function(n){return{$:2,m:n}}(v),Pr=j({N:"",z:0},Er),Jr=t(function(n,r){return{$:0,a:n,b:r}}),Ir=(mn=B,pn(jn="cin"),ln[jn]={f:An,r:mn,a:On},dn(jn)),Rr=function(n,r){return pn(n),ln[n]={e:yn,r:r,a:wn},dn(n)}("cout",X),Fr=t(function(n,r){return{$:0,a:n,b:r}}),Lr=function(n){var r=function(n){n:for(;;){if(n.b){if(n.b.b){n=n.b;continue n}var r=n.a;return ur(r)}return er}}(n);return 1!==r.$&&r.a<0},_r=function(n){return{$:1,a:n}},kr=function(n){return{$:0,a:n}},qr={$:2},zr=function(n){return!n.b},Br=t(function(n,r){if(zr(r))return qr;switch(n){case 2:return qr;case 0:return kr(r);default:return _r(r)}}),Dr=t(function(n,r){return o(Fr,n,r)}),Gr=e(function(n,r,t,u){if(u.b){var e=u.a,f=u.b;if(f.b){var i=f.a,b=f.b;if(b.b){var v=b.a,s=b.b;if(s.b){var l=s.a,h=s.b;return o(n,e,o(n,i,o(n,v,o(n,l,t>500?c(Bn,n,r,Dn(h)):a(Gr,n,r,t+1,h)))))}return o(n,e,o(n,i,o(n,v,r)))}return o(n,e,o(n,i,r))}return o(n,e,r)}return r}),Hr=u(function(n,r,t){return a(Gr,n,r,0,t)}),Wr=(Mn=Hn(0),o(Hr,t(function(n,r){return Mn(n)&&zr(r)?v:o(Pn,n,r)}),v)),Yr=J,Kr=-1+o(Yr,10,7),Qr=Kr+1,Ur=t(function(n,r){var t=r.a,u=r.b;return j(n(t),u)}),Vr=function(n){return n<0?o(Ur,Kn(-1),Vr(n+Qr)):j(n/Qr|0,n%Qr)},Xr=t(function(n,r){for(;;){if(r.b){var t=r.a,u=r.b,e=Vr(t+n),f=e.a,i=e.b;return o(Pn,i,o(Xr,f,u))}if(!(w(n,Qr)>0))return h([n]);var c=h([n]);n=0,r=c}}),Zr=function(n){return Wr(o(Xr,0,n))},nt=t(function(n,r){return c(Hr,t(function(r,t){return o(Pn,n(r),t)}),v,r)}),rt=nt(function(n){return-n}),tt=function(n){switch(n){case 0:return 1;case 1:return 0;default:return 2}},ut=function(n){for(;;){var r=n.a,t=n.b,u=Zr(t);if(!Lr(u))return o(Br,r,u);n=o(Dr,tt(r),rt(u))}},et=t(function(n,r){var t=j(n,r);if(t.a.b){if(t.b.b){var u=t.a,e=(i=u.a,c=u.b,t.b);b=e.a,s=e.b;return o(Pn,j(i,b),o(et,c,s))}var f=t.a,i=f.a,c=f.b;return o(Pn,j(i,0),o(et,c,v))}if(t.b.b){var a=t.b,b=a.a,s=a.b;return o(Pn,j(0,b),o(et,v,s))}return v}),ft=t(function(n,r){return o(et,n,r)}),it=function(n){switch(n.$){case 2:return o(Dr,2,v);case 1:var r=n.a;return o(Dr,0,rt(r));default:r=n.a;return o(Dr,0,r)}},ot=t(function(n,r){var t=it(r).b,u=it(n).b,e=o(ft,u,t),f=o(nt,function(n){return n.a+n.b},e);return ut(o(Fr,0,f))}),ct=function(n){switch(n.$){case 2:return qr;case 1:var r=n.a;return kr(r);default:return n}},at=A,bt=function(n){return ut(o(Fr,function(n){switch(o(at,n,0)){case 0:return 1;case 2:return 0;default:return 2}}(n),h([(r=n,r<0?-r:r)])));var r},vt=e(function(n,r,t,u){n:for(;;){var e=j(t,u);if(e.a.b){if(e.b.b){var f=e.a,i=f.a,c=f.b,a=e.b,b=a.a,v=a.b;if($(i,b)){n=n,r=r,t=c,u=v;continue n}n=i,r=b,t=c,u=v;continue n}return 2}return e.b.b?0:o(at,n,r)}}),st=t(function(n,r){var t=j(n,r);switch(t.a.$){case 0:if(t.b.$)return 2;var u=t.a.a,e=t.b.a;return a(vt,0,0,u,e);case 1:if(1===t.b.$){u=t.a.a,e=t.b.a;return function(n){switch(n){case 0:return 2;case 1:return 1;default:return 0}}(a(vt,0,0,u,e))}return 0;default:switch(t.b.$){case 0:t.a;return 0;case 2:t.a,t.b;return 1;default:t.a;return 2}}}),lt=t(function(n,r){return 2===o(st,n,r)}),ht=t(function(n,r){return!o(lt,n,r)}),dt=function(n){switch(n.$){case 2:return v;case 0:default:return n.a}},gt=t(function(n,r){var t=n;return Zr(o(nt,Vn(r),t))}),$t=t(function(n,r){var t=n,u=r;if(t.b){if(t.b.b){a=t.a;var e=t.b,f=o(gt,u,a),i=o($t,e,u),c=o(ot,o(Br,0,f),o(Br,0,o(Pn,0,i)));return dt(c)}var a=t.a;return o(gt,u,a)}return v}),pt=function(n){switch(n.$){case 2:return 2;case 0:return 0;default:return 1}},yt=t(function(n,r){return 2===n||2===r?2:$(n,r)?0:1}),wt=t(function(n,r){return o(Br,o(yt,pt(n),pt(r)),o($t,dt(n),dt(r)))}),At=t(function(n,r){return o(ot,n,function(n){switch(n.$){case 2:return qr;case 0:var r=n.a;return _r(r);default:return r=n.a,kr(r)}}(r))}),Ot=bt(0),jt=e(function(n,r,t,u){if(n){var e=bt(n),f=o(wt,o(wt,e,u),r),i=o(ht,f,t)?j(o(wt,e,r),o(At,t,f)):j(Ot,t),c=i.a,b=i.b,v=a(jt,n/2|0,r,b,u),s=v.a,l=v.b;return j(o(ot,c,s),l)}return j(Ot,t)}),mt=Fn(o(Ln,2,Kr)),Mt=u(function(n,r,t){return a(jt,o(Yr,2,mt),n,r,t)}),xt=bt(1),Ct=t(function(n,r){return n}),Tt=u(function(n,r,t){return c(Bn,Ct(n),r,o(yr,1,t))}),Nt=function(n){return c(Tt,wt(bt(Qr)),xt,n)},St=u(function(n,r,t){if(n){var u=c(Mt,Nt(n),r,t),e=u.a,f=u.b,i=c(St,n-1,f,t),a=i.a,b=i.b;return j(o(ot,e,a),b)}return c(Mt,Nt(n),r,t)}),Et=function(n){switch(n.$){case 2:return v;case 0:default:return n.a}},Pt=t(function(n,r){if($(r,Ot))return er;var t=gr(Et(n))-gr(Et(r))+1,u=c(St,o(Un,0,t),ct(n),ct(r)),e=u.a,f=u.b;return ur(j(o(Br,o(yt,pt(n),pt(r)),dt(e)),o(Br,pt(n),dt(f))))}),Jt=t(function(n,r){if(r.$)return er;var t=r.a;return ur(n(t))}),It=t(function(n,r){return r.$?n:r.a}),Rt=t(function(n,r){return o(It,Ot,o(Jt,Wn,o(Pt,n,r)))}),Ft=u(function(n,r,t){return n(r(t))}),Lt=L,_t=function(n){return n.length},kt=u(function(n,r,t){return n<=0?t:c(kt,n>>1,x(r,r),1&n?x(t,r):t)}),qt=t(function(n,r){return c(kt,n,r,"")}),zt=u(function(n,r,t){return x(o(qt,n-_t(t),function(n){return o(Lt,n,"")}(r)),t)}),Bt=o(Ft,o(zt,7,"0"),Or),Dt=function(n){var r,t=Dn(n);if(t.b){var u=t.a,e=t.b;return r=o(Pn,Or(u),o(nt,Bt,e)),o(jr,"",r)}return"0"},Gt=function(n){if(n.b){var r=n.a;n.b;return ur(r)}return er},Ht=function(n){for(var r=0,t=n.charCodeAt(0),u=43==t||45==t?1:0,e=u;e<n.length;++e){var f=n.charCodeAt(e);if(f<48||57<f)return er;r=10*r+f-48}return e==u?er:ur(45==t?-r:r)},Wt=function(n){return{$:0,a:n}},Yt=sn({aw:function(n){return Pr},aF:function(n){return Ir(Jr(n.z))},aH:t(function(n,r){var t=n.a,u=n.b;if(t)return j(M(r,{z:t+1}),Er);var e,f,i=o(nt,function(n){return n.$?0:n.a},o(nt,Ht,o(Mr," ",u))),c=(f=Gt(Dn(i))).$?0:f.a,a=bt(c),b=(e=Gt(i)).$?0:e.a,v=bt(b);return j(M(r,{z:t+1}),Rr(function(n){switch(n.$){case 2:return"0";case 0:var r=n.a;return Dt(r);default:return r=n.a,"-"+Dt(r)}}(o(ot,bt(1),o(Rt,o(wt,a,o(ot,v,o(ot,bt(1),o(At,v,a)))),bt(2))))))})});xn={Worker:{init:Yt(Wt(0))(0)}},n.Elm?function n(r,t){for(var u in t)u in r?"init"==u?S(6):n(r[u],t[u]):r[u]=t[u]}(n.Elm,xn):n.Elm=xn}(this)}]);