update
This commit is contained in:
parent
7ad3b0d80e
commit
9db37f1a14
18
src/P8093/P8093.cpp
Normal file
18
src/P8093/P8093.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include <iostream>
|
||||
|
||||
/*
|
||||
|
||||
cal(a,b)
|
||||
1)a==b return 0;
|
||||
2)a>b && a is odd return cal(a+1,b)+1;
|
||||
3)a>b && a is even return cal(a/2,b)+1;
|
||||
4)a>b/2 && a<b return b-a;
|
||||
5)a<b/2 && b is odd return cal(a,b/2)+1;
|
||||
6)a<b/2 && b is even return cal(a,b-1)+1;
|
||||
|
||||
|
||||
*/
|
||||
|
||||
int main(){
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user