Result

AC

Duration

514ms

Code [DL]

@S=global[25x i8]c"%d%d%d%d%d%d%d%d%d%d%d%d\00"@j=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global i32 [email protected]=global[3x i8]c"%d\00"define [email protected](){%1=tail call i32(i8*,...)@scanf(i8*getelementptr([25x i8],[25x i8]*@S,i64 0,i64 0),i32*@j,i32*@k,i32*@l,i32*@a,i32*@b,i32*@c,i32*@d,i32*@e,i32*@f,i32*@g,i32*@h,i32*@i)%2=load i32,i32*@j%3=load i32,i32*@a%4=sub nsw i32%3,%2store i32%4,i32*@a%5=load i32,i32*@k%6=load i32,i32*@b%7=sub nsw i32%6,%5store i32%7,i32*@b%8=load i32,i32*@l%9=load i32,i32*@c%10=sub nsw i32%9,%8store i32%10,i32*@c%11=load i32,i32*@d%12=sub nsw i32%11,%2store i32%12,i32*@d%13=load i32,i32*@e%14=sub nsw i32%13,%5store i32%14,i32*@e%15=load i32,i32*@f%16=sub nsw i32%15,%8store i32%16,i32*@f%17=load i32,i32*@g%18=sub nsw i32%17,%2store i32%18,i32*@g%19=load i32,i32*@h%20=sub nsw i32%19,%5store i32%20,i32*@h%21=load i32,i32*@i%22=sub nsw i32%21,%8store i32%22,i32*@i%23=mul i32%4,%22%24=mul i32%23,%14%25=mul i32%18,%16%26=mul i32%20,%12%27=mul i32%16,%4%28=mul i32%27,%20%29=mul i32%12,%22%30=mul i32%18,%14%31=sub i32%26,%30%32=mul i32%31,%10%33=sub i32%25,%29%34=mul i32%33,%7%35=sub i32%24,%28%36=add i32%35,%32%37=add i32%36,%34%38=sdiv i32%37,6%39=tail call i32(i8*,...)@printf(i8*getelementptr([3x i8],[3x i8]*@T,i64 0,i64 0),i32%38)ret i32 0}declare [email protected](i8*,...)declare [email protected](i8*,...)

stdin

07 55 44
11 41 21
67 51 04
78 05 75

stdout

19962

stderr

strace