by@lv100_official
WA
1540ms
for(i in 0 to 31){ var a = Some(input_line(stdin)); if(a[1]=a[2]){ console.log(a[2]); }else{ console.log(a[4]); }; };
162 422 271 861 366 614 239 319 566 663 678 884 383 387 887 876 389 991 672 924 681 785 522 328 722 923 966 663 785 868 864 635 766 289 299 525 395 592 174 775 243 143 628 288 151 225 267 886 355 886 145 442 611 441 452 238 956 713 475 219 912 291 377 759
We've found a bug for you! /tmp/code.re 2:1-3 1 │ for(i in 0 to 31){ 2 │ var a = Some(input_line(stdin)); 3 │ if(a[1]=a[2]){ 4 │ console.log(a[2]); The value var can't be found
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffeb2c2e0a0 /* 9 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x559ed7da8d18 /* 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"], 0x559ed7da8d38 /* 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"], 0x559ed7da8d20 /* 9 vars */) = 0 13 execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe00bf9d00 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe00bf9d00 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe00bf9d00 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe00bf9d00 /* 9 vars */) = -1 ENOENT (No such file or directory) 13 execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffe00bf9d00 /* 9 vars */) = 0 20 execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x563e58eeb880 /* 9 vars */) = 0 21 execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffd18883700 /* 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"], 0x55c74626b090 /* 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=1} --- 15 +++ exited with 0 +++ 17 +++ exited with 0 +++ 16 +++ exited with 0 +++ 18 +++ 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=6, si_stime=1} --- 23 execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x559ed7da8d48 /* 9 vars */) = 0 22 execve("/bin/cat", ["cat", "-"], 0x559ed7da8d38 /* 9 vars */) = 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} --- 27 +++ exited with 0 +++ 24 +++ exited with 0 +++ 25 +++ exited with 0 +++ 26 +++ exited with 0 +++ 28 +++ 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=5, si_stime=1} --- 30 execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x559ed7da8cf0 /* 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 +++