by@lv100_official
WA
1000ms
for(i in 0 to 31){ let a = Some(input_line(stdin)); if(a.[1]==a.[2]){ console.log(String.make(1,a.[2])) }else{ console.log(String.make(1,a.[4])) } };
977 778 844 472 584 644 177 334 971 481 617 289 776 442 599 295 976 722 566 344 123 929 563 365 213 338 797 977 821 119 322 774 876 618 632 996 466 661 399 497 931 332 112 112 541 414 621 125 244 457 411 477 317 276 155 737 489 843 471 525 475 471 659 962
We've found a bug for you! /tmp/code.re 3:4 1 │ for(i in 0 to 31){ 2 │ let a = Some(input_line(stdin)); 3 │ if(a.[1]==a.[2]){ 4 │ console.log(String.make(1,a.[2])) 5 │ }else{ This has type: [1;31moption(string)[0m But somewhere wanted: [1;33mstring[0m
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffe188dd10 /* 9 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55f959ccdd18 /* 9 vars */) = 0 11 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 12 execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.re"], 0x55f959ccdd38 /* 9 vars */) = 0 12 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 13 execve("/usr/bin/bsc", ["/usr/bin/bsc", "/tmp/code.re"], 0x55f959ccdd20 /* 9 vars */) = 0 13 execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe4be706e0 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe4be706e0 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe4be706e0 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe4be706e0 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe4be706e0 /* 9 vars */) = 0 20 execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x561991aaef60 /* 9 vars */) = 0 21 execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffc1cabb3b0 /* 9 vars */) = 0 21 execve("/usr/lib/node_modules/bs-platform/linux/refmt.exe", ["/usr/lib/node_modules/bs-platfor"..., "--print=binary", "/tmp/code.re"], 0x55f95dd46090 /* 9 vars */) = 0 21 +++ exited with 0 +++ 20 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 20 +++ exited with 2 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=2, si_utime=0, si_stime=0} --- 15 +++ exited with 0 +++ 18 +++ exited with 0 +++ 17 +++ exited with 0 +++ 16 +++ exited with 0 +++ 14 +++ exited with 0 +++ 19 +++ exited with 2 +++ 13 +++ exited with 2 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=3, si_stime=1} --- 22 execve("/bin/cat", ["cat", "-"], 0x55f959ccdd38 /* 9 vars */ <unfinished ...> 23 execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x55f959ccdd48 /* 9 vars */ <unfinished ...> 22 <... execve resumed>) = 0 23 <... execve resumed>) = 0 22 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 26 +++ exited with 0 +++ 25 +++ exited with 0 +++ 28 +++ exited with 0 +++ 27 +++ exited with 0 +++ 24 +++ exited with 0 +++ 29 +++ exited with 0 +++ 23 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=3, si_stime=1} --- 30 execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x55f959ccdcf0 /* 9 vars */) = 0 30 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 10 +++ exited with 0 +++