part 1 and 2 in the same file
This commit is contained in:
parent
b02687f338
commit
2a74970967
41
16/16_2.awk
41
16/16_2.awk
|
@ -50,7 +50,7 @@ function operate(n){
|
|||
if(op==6) result = (val[2]<val[1])
|
||||
if(op==7) result = (val[2]==val[1])
|
||||
lit[++litsp] = result
|
||||
print "operation",op,"with",n,"values; result",result,"litsp",litsp
|
||||
print "operation",op,"with",n,"values; result",result,"(litsp",litsp,")"
|
||||
|
||||
}
|
||||
|
||||
|
@ -145,42 +145,5 @@ END{
|
|||
}
|
||||
}
|
||||
}
|
||||
print "pt1 sum of versions:", versionc
|
||||
}
|
||||
#
|
||||
# if(check[checksp]=="n"){
|
||||
# if(s2c[s2csp]==0 && checknsub ){
|
||||
# n = nsubs[nsubssp--]; n2csp--;
|
||||
# if(--s2csp==0) checknsub=0;
|
||||
# checksp--;
|
||||
# print "nsub done", n, s2csp
|
||||
# operate(n)
|
||||
#
|
||||
# }
|
||||
# if(b2c[b2csp]==0 && checkbits ){
|
||||
# print "bits done"; b2csp--;
|
||||
# if(b2csp==0) checkbits=0;
|
||||
#
|
||||
# checksp--;
|
||||
# n = litsp-litsv[litsvsp--]
|
||||
# operate(n)
|
||||
# }
|
||||
# }else{
|
||||
# if(b2c[b2csp]==0 && checkbits ){
|
||||
# print "bits done"; b2csp--;
|
||||
# if(b2csp==0) checkbits=0;
|
||||
# checksp--;
|
||||
# n = litsp-litsv[litsvsp--]
|
||||
# operate(n)
|
||||
# }
|
||||
# if(s2c[s2csp]==0 && checknsub ){
|
||||
# n = nsubs[nsubssp--]; n2csp--;
|
||||
# if(--s2csp==0) checknsub=0;
|
||||
# checksp--;
|
||||
# print "nsub done", n, s2csp
|
||||
# operate(n)
|
||||
#
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# print "sum of versions:", versionc
|
||||
#}
|
||||
|
|
Loading…
Reference in New Issue