這是Herr Deng桑的教學blog,主要處理作業與班導事務,另外還有數位小品。
int gcd_iteration(int x, int y) { int r; do{ r= x % y; x = y; y = r; } while(r); return x; }
x=z=0y= input()while z<=y : x=x+1 z=z+xprint x
r = Nonex = Noney = None"""Describe this function..."""def gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(123, 456))
def gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(123, 567))
def gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(123, 456))
python程式碼:def gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(123, 567))
python程式碼 : def gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(123, 567))
gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(567, 123))
var r, x, y;/** * Describe this function... */function do_something(x, y) { r = x % y; return r == 0 ? y : do_something(y, r);}window.alert(do_something(123, 567));
var x, r, y;/** * Describe this function... */function gcd2(x, y) { r = x % y; return r == 0 ? y : gcd2(y, r);}window.alert(gcd2(123, 456));
r = Nonex = Noney = None"""Describe this function..."""def gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(123, 567))
r = Nonex = Noney = None"""Describe this function..."""def gcd(x, y): global r r = x % y return y if r == 0 else gcd(y, r)print(gcd(123, None))
gcd(x, y):global rr = x % yreturn y if r == 0 else gcd(y, r)print(gcd(567, 123))
var r, x, y;/*** Describe this function...*/function do_something(x, y) {r = x % y;return r == 0 ? y : do_something(y, r);}window.alert(do_something(123, 567));
def gcd(x, y):global rr = x % yreturn y if r == 0 else gcd(y, r)print(gcd(123, 567))
def gcd(x, y):global rr = x % yreturn y if r == 0 else gcd(y, r)
r = Nonex = Noney = None"""Describe this function..."""def gcd(x, y):global rr = x % yreturn y if r == 0 else gcd(y, r)print(gcd(123, 456))
def gcd(x, y):global rr = x % yreturn y if r == 0 else gcd(y, r)print(gcd(123, 567
張貼留言
42 則留言:
x=z=0
y= input()
while z<=y :
x=x+1
z=z+x
print x
r = None
x = None
y = None
"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 456))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 456))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
python程式碼:
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
python程式碼 :
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(567, 123))
gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(567, 123))
var r, x, y;
/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}
window.alert(do_something(123, 567));
var r, x, y;
/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}
window.alert(do_something(123, 567));
var x, r, y;
/**
* Describe this function...
*/
function gcd2(x, y) {
r = x % y;
return r == 0 ? y : gcd2(y, r);
}
window.alert(gcd2(123, 456));
var r, x, y;
/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}
window.alert(do_something(123, 567));
r = None
x = None
y = None
"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(567, 123))
r = None
x = None
y = None
"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, None))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 456))
r = None
x = None
y = None
"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(567, 123))
var r, x, y;
/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}
window.alert(do_something(123, 567));
var r, x, y;
/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}
window.alert(do_something(123, 567));
var r, x, y;
/**
* Describe this function...
*/
function do_something(x, y) {
r = x % y;
return r == 0 ? y : do_something(y, r);
}
window.alert(do_something(123, 567));
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567))
r = None
x = None
y = None
"""Describe this function...
"""
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 456))
def gcd(x, y):
global r
r = x % y
return y if r == 0 else gcd(y, r)
print(gcd(123, 567
張貼留言