結果
問題 | No.296 n度寝 |
ユーザー | Goryudyuma |
提出日時 | 2019-04-11 23:17:00 |
言語 | JavaScript (node v21.7.1) |
結果 |
AC
|
実行時間 | 82 ms / 1,000 ms |
コード長 | 17,644 bytes |
コンパイル時間 | 29 ms |
コンパイル使用メモリ | 6,688 KB |
実行使用メモリ | 42,804 KB |
最終ジャッジ日時 | 2024-10-13 01:04:58 |
合計ジャッジ時間 | 1,856 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 79 ms
40,704 KB |
testcase_01 | AC | 82 ms
42,796 KB |
testcase_02 | AC | 76 ms
42,672 KB |
testcase_03 | AC | 73 ms
40,576 KB |
testcase_04 | AC | 76 ms
40,576 KB |
testcase_05 | AC | 73 ms
40,832 KB |
testcase_06 | AC | 75 ms
42,668 KB |
testcase_07 | AC | 76 ms
42,736 KB |
testcase_08 | AC | 78 ms
42,672 KB |
testcase_09 | AC | 75 ms
40,704 KB |
testcase_10 | AC | 77 ms
40,832 KB |
testcase_11 | AC | 80 ms
40,832 KB |
testcase_12 | AC | 77 ms
42,804 KB |
testcase_13 | AC | 76 ms
42,740 KB |
testcase_14 | AC | 72 ms
40,832 KB |
testcase_15 | AC | 77 ms
42,732 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),o=e.Worker.init();o.ports.cout.subscribe(n=>{console.log(n)}),u.on("line",n=>{o.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 o(n){return r(5,n,function(r){return function(t){return function(u){return function(e){return function(o){return n(r,t,u,e,o)}}}}})}function f(n){return r(6,n,function(r){return function(t){return function(u){return function(e){return function(o){return function(f){return n(r,t,u,e,o,f)}}}}}})}function i(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,o){return 5===n.a?n.f(r,t,u,e,o):n(r)(t)(u)(e)(o)}var v={$:0};function l(n,r){return{$:1,a:n,b:r}}var s=t(l);function h(n){for(var r=v,t=n.length;t--;)r=l(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(i(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)}),o(function(n,r,t,u,e){for(var o=[];r.b&&t.b&&u.b&&e.b;r=r.b,t=t.b,u=u.b,e=e.b)o.push(a(n,r.a,t.a,u.a,e.a));return h(o)}),f(function(n,r,t,u,e,o){for(var f=[];r.b&&t.b&&u.b&&e.b&&o.b;r=r.b,t=t.b,u=u.b,e=e.b,o=o.b)f.push(b(n,r.a,t.a,u.a,e.a,o.a));return h(f)}),t(function(n,r){return h(d(r).sort(function(r,t){return y(n(r),n(t))}))}),t(function(n,r){return h(d(r).sort(function(r,t){var u=i(n,r,t);return u===On?0:u===mn?-1:1}))});function p(n,r){for(var t,u=[],e=$(n,r,0,u);e&&(t=u.pop());e=$(t.a,t.b,0,u));return e}function $(n,r,t,u){if(t>100)return u.push(O(n,r)),!0;if(n===r)return!0;if("object"!=typeof n||null===n||null===r)return"function"==typeof n&&C(5),!1;for(var e in n.$<0&&(n=xn(n),r=xn(r)),n)if(!$(n[e],r[e],t+1,u))return!1;return!0}t(p),t(function(n,r){return!p(n,r)});function y(n,r,t){if("object"!=typeof n)return n===r?0:n<r?-1:1;if(void 0===n.$)return(t=y(n.a,r.a))?t:(t=y(n.b,r.b))?t:y(n.c,r.c);for(;n.b&&r.b&&!(t=y(n.a,r.a));n=n.b,r=r.b);return t||(n.b?1:r.b?-1:0)}t(function(n,r){return y(n,r)<0}),t(function(n,r){return y(n,r)<1}),t(function(n,r){return y(n,r)>0}),t(function(n,r){return y(n,r)>=0}),t(function(n,r){var t=y(n,r);return t<0?mn:t?jn:On});var A=0;function O(n,r){return{a:n,b:r}}function j(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(function(n,r){if("string"==typeof n)return n+r;if(!n.b)return r;var t=l(n.a,r);n=n.b;for(var u=t;n.b;n=n.b)u=u.b=l(n.a,r);return t});var w=u(function(n,r,t){for(var u=new Array(n),e=0;e<n;e++)u[e]=t(r+e);return u}),M=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,O(t,r)}),x=(t(function(n,r){return r[n]}),u(function(n,r,t){for(var u=t.length,e=new Array(u),o=0;o<u;o++)e[o]=t[o];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=i(n,t[e],r);return r}),u(function(n,r,t){for(var u=t.length-1;u>=0;u--)r=i(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),o=0;o<u;o++)e[o]=i(n,r+o,t[o]);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 o=new Array(u+e),f=0;f<u;f++)o[f]=r[f];for(f=0;f<e;f++)o[f+u]=t[f];return o}),t(function(n,r){return r}),t(function(n,r){return console.log(n+": <internals>"),r});function C(n){throw new Error("https://github.com/elm/core/blob/1.0.0/hints/"+n+".md")}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 n/r}),t(function(n,r){return n/r|0}),t(Math.pow),t(function(n,r){return r%n});var T=t(function(n,r){var t=r%n;return 0===n?C(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 N=Math.ceil,S=Math.floor,E=(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});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 o=r.charCodeAt(e);55296<=o&&o<=56319?(u[e]=n(j(r[e]+r[e+1])),e+=2):(u[e]=n(j(r[e])),e++)}return u.join("")}),t(function(n,r){for(var t=[],u=r.length,e=0;e<u;){var o=r[e],f=r.charCodeAt(e);e++,55296<=f&&f<=56319&&(o+=r[e],e++),n(j(o))&&t.push(o)}return t.join("")});u(function(n,r,t){for(var u=t.length,e=0;e<u;){var o=t[e],f=t.charCodeAt(e);e++,55296<=f&&f<=56319&&(o+=t[e],e++),r=i(n,j(o),r)}return r}),u(function(n,r,t){for(var u=t.length;u--;){var e=t[u],o=t.charCodeAt(u);56320<=o&&o<=57343&&(e=t[--u]+e),r=i(n,j(e),r)}return r});var P=t(function(n,r){return r.split(n)}),J=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(j(u)))return!0}return!1});var I=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(j(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 R(n){return{$:2,b:n}}R(function(n){return"number"!=typeof n?G("an INT",n):-2147483647<n&&n<2147483647&&(0|n)===n?Qn(n):!isFinite(n)||n%1?G("an INT",n):Qn(n)}),R(function(n){return"boolean"==typeof n?Qn(n):G("a BOOL",n)}),R(function(n){return"number"==typeof n?Qn(n):G("a FLOAT",n)}),R(function(n){return Qn(Y(n))});var z=R(function(n){return"string"==typeof n?Qn(n):n instanceof String?Qn(n+""):G("a STRING",n)});t(function(n,r){return{$:6,d:n,b:r}}),t(function(n,r){return{$:7,e:n,b:r}});function L(n,r){return{$:9,f:n,g:r}}t(function(n,r){return{$:10,b:r,h:n}});t(function(n,r){return L(n,[r])}),u(function(n,r,t){return L(n,[r,t])}),e(function(n,r,t,u){return L(n,[r,t,u])}),o(function(n,r,t,u,e){return L(n,[r,t,u,e])}),f(function(n,r,t,u,e,o){return L(n,[r,t,u,e,o])}),r(7,_=function(n,r,t,u,e,o,f){return L(n,[r,t,u,e,o,f])},function(n){return function(r){return function(t){return function(u){return function(e){return function(o){return function(f){return _(n,r,t,u,e,o,f)}}}}}}}),function(n){r(8,n,function(r){return function(t){return function(u){return function(e){return function(o){return function(f){return function(i){return function(c){return n(r,t,u,e,o,f,i,c)}}}}}}}})}(function(n,r,t,u,e,o,f,i){return L(n,[r,t,u,e,o,f,i])}),function(n){r(9,n,function(r){return function(t){return function(u){return function(e){return function(o){return function(f){return function(i){return function(c){return function(a){return n(r,t,u,e,o,f,i,c,a)}}}}}}}}})}(function(n,r,t,u,e,o,f,i,c){return L(n,[r,t,u,e,o,f,i,c])}),t(function(n,r){try{return k(n,JSON.parse(r))}catch(n){return Kn(i(Un,"This is not valid JSON! "+n.message,Y(r)))}});var _,B=t(function(n,r){return k(n,H(r))});function k(n,r){switch(n.$){case 2:return n.b(r);case 5:return null===r?Qn(n.c):G("null",r);case 3:return F(r)?q(n.b,r,h):G("a LIST",r);case 4:return F(r)?q(n.b,r,D):G("an ARRAY",r);case 6:var t=n.d;if("object"!=typeof r||null===r||!(t in r))return G("an OBJECT with a field named `"+t+"`",r);var u=k(n.b,r[t]);return An(u)?u:Kn(i(Vn,t,u.a));case 7:var e=n.e;if(!F(r))return G("an ARRAY",r);if(e>=r.length)return G("a LONGER array. Need index "+e+" but only see "+r.length+" entries",r);u=k(n.b,r[e]);return An(u)?u:Kn(i(Xn,e,u.a));case 8:if("object"!=typeof r||null===r||F(r))return G("an OBJECT",r);var o=v;for(var f in r)if(r.hasOwnProperty(f)){u=k(n.b,r[f]);if(!An(u))return Kn(i(Vn,f,u.a));o=l(O(f,u.a),o)}return Qn(zn(o));case 9:for(var c=n.f,a=n.g,b=0;b<a.length;b++){u=k(a[b],r);if(!An(u))return u;c=c(u.a)}return Qn(c);case 10:u=k(n.b,r);return An(u)?k(n.h(u.a),r):u;case 11:for(var s=v,d=n.g;d.b;d=d.b){u=k(d.a,r);if(An(u))return u;s=l(u.a,s)}return Kn(Zn(zn(s)));case 1:return Kn(i(Un,n.a,Y(r)));case 0:return Qn(n.a)}}function q(n,r,t){for(var u=r.length,e=new Array(u),o=0;o<u;o++){var f=k(n,r[o]);if(!An(f))return Kn(i(Xn,o,f.a));e[o]=f.a}return Qn(t(e))}function F(n){return Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList}function D(n){return i(Wn,n.length,function(r){return n[r]})}function G(n,r){return Kn(i(Un,"Expecting "+n,Y(r)))}var W=t(function(n,r){return JSON.stringify(H(r),null,n)+""});function Y(n){return n}function H(n){return n}u(function(n,r,t){return t[n]=H(r),t});Y(null);function K(n){return{$:0,a:n}}function Q(n){return{$:2,b:n,c:null}}var U=t(function(n,r){return{$:3,b:n,d:r}});t(function(n,r){return{$:4,b:n,d:r}});var V=0;function X(n){var r={$:0,e:V++,f:n,g:null,h:[]};return un(r),r}function Z(n,r){n.h.push(r),un(n)}var nn=t(function(n,r){return Q(function(t){Z(n,r),t(K(A))})});var rn=!1,tn=[];function un(n){if(tn.push(n),!rn){for(rn=!0;n=tn.shift();)en(n);rn=!1}}function en(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,un(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 on=e(function(n,r,t,u){return function(n,r,t,u,e,o){var f=i(B,n,Y(r?r.flags:void 0));An(f)||C(2);var c={},a=(f=t(f.a)).a,b=o(l,a),v=function(n,r){var t;for(var u in fn){var e=fn[u];e.a&&((t=t||{})[u]=e.a(u,r)),n[u]=cn(e,r)}return t}(c,l);function l(n,r){f=i(u,n,a),b(a=f.a,r),bn(c,f.b,e(a))}return bn(c,f.b,e(a)),v?{ports:v}:{}}(r,u,n.at,n.aB,n.az,function(){return function(){}})});var fn={};function cn(n,r){var t={g:r,h:void 0},u=n.c,e=n.d,o=n.e,f=n.f;return t.h=X(i(U,function n(r){return i(U,n,{$:5,b:function(n){var i=n.a;return 0===n.$?c(e,t,i,r):o&&f?a(u,t,i.i,i.j,r):c(u,t,o?i.i:i.j,r)}})},n.b))}t(function(n,r){return Q(function(t){n.g(r),t(K(A))})}),t(function(n,r){return i(nn,n.h,{$:0,a:r})});function an(n){return function(r){return{$:1,k:n,l:r}}}t(function(n,r){return{$:3,n:n,o:r}});function bn(n,r,t){var u={};for(var e in vn(!0,r,u,null),vn(!1,t,u,null),n)Z(n[e],{$:"fx",a:u[e]||{i:v,j:v}})}function vn(n,r,t,u){switch(r.$){case 1:var e=r.k,o=function(n,r,t,u){return i(n?fn[r].e:fn[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=l(r,t.i):t.j=l(r,t.j),t}(n,o,t[e]));case 2:for(var f=r.m;f.b;f=f.b)vn(n,f.a,t,u);return;case 3:return void vn(n,r.o,t,{p:r.n,q:u})}}function ln(n){fn[n]&&C(3)}var sn=t(function(n,r){return r});function hn(n){var r,t=[],e=fn[n].r,o=(r=0,Q(function(n){var t=setTimeout(function(){n(K(A))},r);return function(){clearTimeout(t)}}));return fn[n].b=o,fn[n].c=u(function(n,r,u){for(;r.b;r=r.b)for(var f=t,i=H(e(r.a)),c=0;c<f.length;c++)f[c](i);return o}),{subscribe:function(n){t.push(n)},unsubscribe:function(n){var r=(t=t.slice()).indexOf(n);r>=0&&t.splice(r,1)}}}var dn=t(function(n,r){return function(t){return n(r(t))}});function gn(n,r){var t=v,e=fn[n].r,o=K(null);return fn[n].b=o,fn[n].c=u(function(n,r,u){return t=r,o}),{send:function(n){var u=i(B,e,Y(n));An(u)||C(4,u.a);for(var o=u.a,f=t;f.b;f=f.b)r(f.a(o))}}}var pn,$n,yn,An=function(n){return!n.$},On=1,jn=2,mn=0,wn=u(function(n,r,t){for(;;){if(-2===t.$)return r;var u=t.b,e=t.c,o=t.d,f=t.e,i=n,a=c(n,u,e,c(wn,n,r,f));n=i,r=a,t=o}}),Mn=s,xn=function(n){return c(wn,u(function(n,r,t){return i(Mn,O(n,r),t)}),v,n)},Cn=x,Tn=(u(function(n,r,u){var e=u.c,o=u.d,f=t(function(r,t){if(r.$){var u=r.a;return c(Cn,n,t,u)}var e=r.a;return c(Cn,f,t,e)});return c(Cn,f,c(Cn,n,r,o),e)}),e(function(n,r,t,u){return{$:0,a:n,b:r,c:t,d:u}})),Nn=N,Sn=t(function(n,r){return E(r)/E(n)}),En=Nn(i(Sn,2,32)),Pn=[],Jn=a(Tn,0,En,Pn,Pn),In=M,Rn=u(function(n,r,t){for(;;){if(!t.b)return r;var u=t.a,e=t.b,o=n,f=i(n,u,r);n=o,r=f,t=e}}),zn=function(n){return c(Rn,Mn,v,n)},Ln=t(function(n,r){for(;;){var t=i(In,32,n),u=t.a,e=t.b,o=i(Mn,{$:0,a:u},r);if(!e.b)return zn(o);n=e,r=o}}),_n=(t(function(n,r){return r(n)}),t(function(n,r){for(;;){var t=Nn(r/32);if(1===t)return i(In,32,n).a;n=i(Ln,n,v),r=t}})),Bn=(t(function(n,r){return n(r)}),S),kn=t(function(n,r){return y(n,r)>0?n:r}),qn=function(n){return n.length},Fn=t(function(n,r){if(r.a){var t=32*r.a,u=Bn(i(Sn,32,t-1)),e=n?zn(r.d):r.d,o=i(_n,e,r.a);return a(Tn,qn(r.c)+t,i(kn,5,u*En),o,r.c)}return a(Tn,qn(r.c),En,Pn,r.c)}),Dn=w,Gn=o(function(n,r,t,u,e){for(;;){if(r<0)return i(Fn,!1,{d:u,a:t/32|0,c:e});var o={$:1,a:c(Dn,32,r,n)};n=n,r=r-32,t=t,u=i(Mn,o,u),e=e}}),Wn=t(function(n,r){if(n<=0)return Jn;var t=n%32,u=c(Dn,t,n-t,r);return b(Gn,r,n-t-32,n,v,u)}),Yn=function(n){return{$:0,a:n}},Hn={$:1},Kn=function(n){return{$:1,a:n}},Qn=function(n){return{$:0,a:n}},Un=t(function(n,r){return{$:3,a:n,b:r}}),Vn=t(function(n,r){return{$:0,a:n,b:r}}),Xn=t(function(n,r){return{$:1,a:n,b:r}}),Zn=function(n){return{$:2,a:n}},nr=function(n){var r=n.charCodeAt(0);return 55296<=r&&r<=56319?1024*(r-55296)+n.charCodeAt(1)-56320+65536:r},rr=function(n){var r=nr(n);return 97<=r&&r<=122},tr=function(n){var r=nr(n);return r<=90&&65<=r},ur=function(n){return rr(n)||tr(n)},er=function(n){return rr(n)||tr(n)||function(n){var r=nr(n);return r<=57&&48<=r}(n)},or=function(n){return c(Rn,t(function(n,r){return r+1}),0,n)},fr=g,ir=u(function(n,r,t){for(;;){if(!(y(n,r)<1))return t;var u=n,e=r-1,o=i(Mn,r,t);n=u,r=e,t=o}}),cr=t(function(n,r){return c(ir,n,r,v)}),ar=t(function(n,r){return c(fr,n,i(cr,0,or(r)-1),r)}),br=I,vr=function(n){return n+""},lr=t(function(n,r){return i(J,n,d(r))}),sr=function(n){var r=n.charCodeAt(0);return r?Yn(55296<=r&&r<=56319?O(j(n[0]+n[1]),n.slice(2)):O(j(n[0]),n.slice(1))):Hn},hr=t(function(n,r){return h(i(P,n,r))}),dr=function(n){return i(lr,"\n ",i(hr,"\n",n))},gr=W,pr=t(function(n,r){return"\n\n("+vr(n+1)+") "+dr($r(r))}),$r=function(n){return i(yr,n,v)},yr=t(function(n,r){n:for(;;)switch(n.$){case 0:var t=n.a,u=n.b,e=function(){var n=sr(t);if(1===n.$)return!1;var r=n.a,u=r.a,e=r.b;return ur(u)&&i(br,er,e)}(),o=u,f=i(Mn,e?"."+t:"['"+t+"']",r);n=o,r=f;continue n;case 1:var c=n.a,a=(u=n.b,"["+vr(c)+"]");o=u,f=i(Mn,a,r);n=o,r=f;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"+i(lr,"",zn(r)):"Json.Decode.oneOf")+" failed in the following "+vr(or(b))+" ways:";return i(lr,"\n\n",i(Mn,v,i(ar,pr,b)))}n=o=u=b.a,r=f=r;continue n}return"Ran into a Json.Decode.oneOf with no possibilities"+(r.b?" at json"+i(lr,"",zn(r)):"!");default:var l=n.a,s=n.b;return(v=r.b?"Problem with the value at json"+i(lr,"",zn(r))+":\n\n ":"Problem with the given value:\n\n")+(dr(i(gr,4,s))+"\n\n")+l}}),Ar=function(n){return{$:2,m:n}}(v),Or=O({N:"",z:0},Ar),jr=t(function(n,r){return{$:0,a:n,b:r}}),mr=($n=z,ln(pn="cin"),fn[pn]={f:dn,r:$n,a:gn},an(pn)),wr=function(n,r){return ln(n),fn[n]={e:sn,r:r,a:hn},an(n)}("cout",Y),Mr=T,xr=t(function(n,r){for(;;){if(n<=0)return r;if(!r.b)return r;r.a;n=n-1,r=r.b}}),Cr=function(n){if(n.b){var r=n.a;n.b;return Yn(r)}return Hn},Tr=e(function(n,r,t,u){if(u.b){var e=u.a,o=u.b;if(o.b){var f=o.a,b=o.b;if(b.b){var v=b.a,l=b.b;if(l.b){var s=l.a,h=l.b;return i(n,e,i(n,f,i(n,v,i(n,s,t>500?c(Rn,n,r,zn(h)):a(Tr,n,r,t+1,h)))))}return i(n,e,i(n,f,i(n,v,r)))}return i(n,e,i(n,f,r))}return i(n,e,r)}return r}),Nr=u(function(n,r,t){return a(Tr,n,r,0,t)}),Sr=t(function(n,r){return c(Nr,t(function(r,t){return i(Mn,n(r),t)}),v,r)}),Er=function(n){for(var r=0,t=n.charCodeAt(0),u=43==t||45==t?1:0,e=u;e<n.length;++e){var o=n.charCodeAt(e);if(o<48||57<o)return Hn;r=10*r+o-48}return e==u?Hn:Yn(45==t?-r:r)},Pr=function(n){return{$:0,a:n}},Jr=on({at:function(n){return Or},az:function(n){return mr(jr(n.z))},aB:t(function(n,r){var t=n.a,u=n.b;if(t)return O(m(r,{z:t+1}),Ar);var e,o,f,c,a=i(Sr,function(n){return n.$?0:n.a},i(Sr,Er,i(hr," ",u))),b=(c=Cr(i(xr,2,a))).$?0:c.a,v=(((f=Cr(a)).$?0:f.a)-1)*((o=Cr(i(xr,3,a))).$?0:o.a)+60*((e=Cr(i(xr,1,a))).$?0:e.a)+b;return O(m(r,{z:t+1}),wr(vr(i(Mr,24,v/60|0))+"\n"+vr(i(Mr,60,v))))})});yn={Worker:{init:Jr(Pr(0))(0)}},n.Elm?function n(r,t){for(var u in t)u in r?"init"==u?C(6):n(r[u],t[u]):r[u]=t[u]}(n.Elm,yn):n.Elm=yn}(this)}]);