tobast

Untitled

Jan 4th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CAN HAS STDIO?
  2.  
  3. HAI 1.2
  4.     BTW calculer le PGCD de a et b avec Euclide
  5.     HOW DUZ I pgcd YR a AN YR b
  6.         DIFFRINT b AN 0, O RLY?
  7.             YA RLY
  8.                 FOUND YR pgcd b MOD OF a AN b
  9.             NO WAI
  10.                 FOUND YR a
  11.         OIC
  12.     IF U SAY SO
  13.  
  14.  
  15.  
  16.  
  17.     I HAS A a ITZ 0
  18.     I HAS A b ITZ 0
  19.     GIMMEH a
  20.     GIMMEH b
  21.  
  22.     BTW m est le nombre obtenu en retirant le maximum de fois a à b
  23.     I HAS A m ITZ MOD OF b AN a
  24.  
  25.     BOTH SAEM m AN 0, O RLY?
  26.         YA RLY
  27.             VISIBLE QUOSHUNT OF b AN a BTW dans ce cas, S= multiples de a dans [1;b] et dans N
  28.  
  29.         MEBBE BOTH SAEM 0 AN MOD OF a AN m
  30.             VISIBLE QUOSHUNT OF b AN m BTW same, mais avec des multiples de m et non de a.
  31.  
  32.         NO WAI
  33.             VISIBLE QUOSHUNT OF b AN pgcd b a
  34.             BTW cf. code en C++, too lazy to c/p it.
  35.     OIC
  36.  
  37. KTHXBYE
  38.  
  39. BTW */
Advertisement
Add Comment
Please, Sign In to add comment