Result

WA

Duration

779ms

Code [DL]

main(a,b,c=100){while(c--){scanf(&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;}

stdin

59
68
26
17
71
37
43
31
55
64
67
82
12
35
66
34
81
84
70
73
60
99
92
26
94
65
83
89
76
49
67
39
72
15
53
48
58
93
72
98
74
75
77
85
14
12
36
45
50
18
41
32
22
16
46
27
88
30
47
24
68
78
40
97
10
56
25
52
91
33
80
86
20
38
16
13
95
29
54
50
61
28
57
42
79
96
31
44
66
69
51
23
69
63
21
87
19
11
90
62

stdout

stderr

/tmp/code.c:1:11: error: expected ')' before '=' token
 main(a,b,c=100){while(c--){scanf(&a);b=10;while(--b){if(a%b==0&&a/b<10){puts("1")}else{puts("0")}}}return 0;}
           ^
           )
/root/script: line 7: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE.c"], 0x7ffe03e20a60 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE.c"], 0x56475bc4ad20 /* 7 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.c", "/tmp/code.c"], 0x56475bc4ad40 /* 7 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/gcc", ["gcc", "-Wall", "-O2", "-std=c99", "/tmp/code.c", "-o", "/tmp/code", "-lm"], 0x56475ce80118 /* 7 vars */) = 0
14    execve("/usr/libexec/gcc/x86_64-alpine-linux-musl/8.3.0/cc1", ["/usr/libexec/gcc/x86_64-alpine-l"..., "-quiet", "/tmp/code.c", "-quiet", "-dumpbase", "code.c", "-mtune=generic", "-march=x86-64", "-auxbase", "code", "-O2", "-Wall", "-std=c99", "-o", "/tmp/ccIomOJo.s"], 0x198ed40 /* 10 vars */) = 0
14    +++ exited with 1 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
13    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
15    execve("/bin/cat", ["cat", "-"], 0x56475bc4ad08 /* 7 vars */ <unfinished ...>
16    execve("/tmp/code", ["/tmp/code"], 0x56475bc4acf0 /* 7 vars */) = -1 ENOENT (No such file or directory)
16    +++ exited with 127 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=127, si_utime=0, si_stime=0} ---
15    <... execve resumed> )            = 0
15    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=15, si_uid=0} ---
15    +++ killed by SIGPIPE +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=15, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} ---
17    execve("/bin/rm", ["rm", "/tmp/code.c", "/tmp/code"], 0x56475bc4acf0 /* 7 vars */) = 0
17    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
10    +++ exited with 1 +++