by@lv100_official
WA
885ms
for (i in 0 to 31) { let a = input_line(stdin); if (a.[1] == a.[2]) { print_endline(String.sub(a, 2, 2)); } else { print_endline(String.sub(a, 4, 4)); }; };
/tmp/code 0 directories, 0 files
466 883 168 845 339 896 397 954 652 524 477 776 249 993 877 274 578 771 488 375 676 674 779 362 697 556 384 546 859 155 924 154 256 667 873 163 355 579 528 524 233 234 954 559 737 378 311 117 988 993 672 769 248 859 388 846 476 671 233 436 755 266 262 332
tar: invalid tar magic Unhandled Exception: System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.Max (System.Collections.Generic.IEnumerable`1[T] source) [0x00022] in <7ded87b81a794667956c6beaee0bc32a>:0 at Rottytooth.Esolang.Folders.DirInfoExtensions.CustomSort (System.Collections.Generic.IEnumerable`1[T] list) [0x0002c] in <57324297c3c645d79f3c2dab909d76bf>:0 at Rottytooth.Esolang.Folders.ProgramBuilderPure.BuildProgram () [0x0001c] in <57324297c3c645d79f3c2dab909d76bf>:0 at Rottytooth.Esolang.Folders.Program.Compile (System.String path, System.String& errors, System.Boolean exe, System.Boolean pureFolders) [0x0000e] in <57324297c3c645d79f3c2dab909d76bf>:0 at Rottytooth.Esolang.Folders.Program.Main (System.String[] args) [0x00066] in <57324297c3c645d79f3c2dab909d76bf>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.Max (System.Collections.Generic.IEnumerable`1[T] source) [0x00022] in <7ded87b81a794667956c6beaee0bc32a>:0 at Rottytooth.Esolang.Folders.DirInfoExtensions.CustomSort (System.Collections.Generic.IEnumerable`1[T] list) [0x0002c] in <57324297c3c645d79f3c2dab909d76bf>:0 at Rottytooth.Esolang.Folders.ProgramBuilderPure.BuildProgram () [0x0001c] in <57324297c3c645d79f3c2dab909d76bf>:0 at Rottytooth.Esolang.Folders.Program.Compile (System.String path, System.String& errors, System.Boolean exe, System.Boolean pureFolders) [0x0000e] in <57324297c3c645d79f3c2dab909d76bf>:0 at Rottytooth.Esolang.Folders.Program.Main (System.String[] args) [0x00066] in <57324297c3c645d79f3c2dab909d76bf>:0 Cannot open assembly 'code.exe': No such file or directory.
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.tar"], 0x7ffeb9ab6590 /* 9 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE.tar"], 0x56012764ed20 /* 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", "-s", "/volume/CODE.tar", "/tmp/code.tar"], 0x56012764ed40 /* 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("/bin/mkdir", ["mkdir", "-p", "/tmp/code"], 0x56012764ece0 /* 9 vars */) = 0 13 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 14 execve("/bin/tar", ["tar", "xf", "/tmp/code.tar", "-C", "/tmp/code"], 0x560127e110c0 /* 9 vars */) = 0 14 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 15 execve("/usr/bin/mono", ["mono", "Folders.exe", "../../../../../../../tmp/code"], 0x56012764ed40 /* 10 vars */) = 0 17 +++ exited with 1 +++ 16 +++ exited with 1 +++ 15 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=1, si_utime=2, si_stime=1} --- 18 execve("/bin/cat", ["cat", "-"], 0x56012764ed30 /* 10 vars */ <unfinished ...> 19 execve("/usr/bin/mono", ["mono", "code.exe"], 0x56012764ed38 /* 10 vars */ <unfinished ...> 18 <... execve resumed>) = 0 19 <... execve resumed>) = 0 18 +++ exited with 0 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 21 +++ exited with 0 +++ 20 +++ exited with 0 +++ 19 +++ exited with 2 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=2, si_utime=0, si_stime=0} --- 22 execve("/bin/rm", ["rm", "-rf", "code.exe", "/tmp/code"], 0x56012764ed38 /* 10 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} --- 10 +++ exited with 0 +++