Oracle Application Server Premier technical support过期了,我们能不能继续用 OAS(我们一开始有买Processor License)?
g*u
4 楼
85. You have an abstract computer, so just forget everything you know about computers, this one only does what I'm about to tell you it does. You can use as many variables as you need, there are no negative numbers, all numbers are integers. You do not know the size of the integers, they could be infinitely large, so you can't count on truncating at any point. There are NO comparisons allowed, no if statements or anything like that. There are only four operations you can do on a variable. 1) You
Interesting, I'd assume that you won't be given a 0 to subtract 1 right? Also, what about loop (0)? If loop (0) is skip, then -1 is quite easy. Using -1 module, pretty easy to do subtraction. With loop (0), we can generate if (expr == 0) stmt; using var v = 0; ++v; loop (expr) v = 0; loop (v) stmt; Division is pretty easy with -1 module, and if stmt.
about
【在 g*****u 的大作中提到】 : 85. You have an abstract computer, so just forget everything you know about : computers, this one only does what I'm about to tell you it does. You can : use as many variables as you need, there are no negative numbers, all : numbers are integers. You do not know the size of the integers, they could : be infinitely large, so you can't count on truncating at any point. There : are NO comparisons allowed, no if statements or anything like that. There : are only four operations you can do on a variable. : 1) You
bit operation? It looks like theoritical computing ah.
about
【在 g*****u 的大作中提到】 : 85. You have an abstract computer, so just forget everything you know about : computers, this one only does what I'm about to tell you it does. You can : use as many variables as you need, there are no negative numbers, all : numbers are integers. You do not know the size of the integers, they could : be infinitely large, so you can't count on truncating at any point. There : are NO comparisons allowed, no if statements or anything like that. There : are only four operations you can do on a variable. : 1) You
x*g
15 楼
都打了,也给我个分吧。。
c*z
16 楼
have no idea what coconut is talking about, can you explain clearer? my version of decrement is : //////////////////////// temp = 0; loop(input) output = temp; temp++; end loop //output should equal input-1
h*1
17 楼
Okay~
【在 x****g 的大作中提到】 : 都打了,也给我个分吧。。
c*z
18 楼
///subtraction: input varaibles are small and big /// i assume we already know small < big result = big; loop(small) result = decrement(result); end loop
f*9
19 楼
可爱.. 10
c*z
20 楼
//division i suppose it ask for integer division which means 5/2=2 // input is big and small , do big/small result = 0; remainder = big; loop(remainder) remainder = subtract(remainder,small); result ++; end loop decrement(result); //result = big/small