| r250 vs r251 | ||
|---|---|---|
| ... | ... | |
| 1626 | 1626 | }}} |
| 1627 | 1627 | }}} |
| 1628 | 1628 | ##i=2 |
| 1629 | 이후부터 과정은 동일합니다. | |
| 1629 | 이후부터 과정은 동일합니다. 많아야 소수점 위 36자리, 소수점 아래 36자리 모두를 쓰면 72개이므로 총 72회(for i=0 to i=71)를 진행합니다. | |
| 1630 | 1630 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") |
| 1631 | 1631 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz |
| 1632 | 1632 | }}}{{{#!if ty=ty.toString(), ty.length==19 |
| ... | ... | |
| 1675 | 1675 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) |
| 1676 | 1676 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" |
| 1677 | 1677 | }}}}}}}}} |
| 1678 | ##i=3 | |
| 1679 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 1680 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 1681 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1682 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1683 | }}}}}} | |
| 1684 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 1685 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 1686 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1687 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1688 | }}}}}}{{{#!if ty=+ty | |
| 1689 | }}}}}} | |
| 1690 | {{{#!if ty>ab | |
| 1691 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 1692 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 1693 | }}}}}} | |
| 1694 | {{{#!if !br | |
| 1695 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 1696 | {{{#if ps=true, tm+="0" | |
| 1697 | }}}}}} | |
| 1698 | {{{#!if !ps | |
| 1699 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 1700 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1701 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1702 | }}}}}} | |
| 1703 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 1704 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 1705 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1706 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1707 | }}}}}}{{{#!if ty=+ty | |
| 1708 | }}}}}} | |
| 1709 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 1710 | }}}{{{#!if ty>ab | |
| 1711 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 1712 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 1713 | }}} | |
| 1714 | {{{#!if (au==0)&&(ab==0) | |
| 1715 | {{{#!if br=true | |
| 1716 | }}}}}}}}} | |
| 1717 | {{{#!if !br | |
| 1718 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 1719 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 1720 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 1721 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 1722 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 1723 | }}}}}}{{{#!if ab.length<18 | |
| 1724 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 1725 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 1726 | }}}}}}}}} | |
| 1727 | ##i=4 | |
| 1728 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 1729 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 1730 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1731 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1732 | }}}}}} | |
| 1733 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 1734 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 1735 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1736 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1737 | }}}}}}{{{#!if ty=+ty | |
| 1738 | }}}}}} | |
| 1739 | {{{#!if ty>ab | |
| 1740 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 1741 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 1742 | }}}}}} | |
| 1743 | {{{#!if !br | |
| 1744 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 1745 | {{{#if ps=true, tm+="0" | |
| 1746 | }}}}}} | |
| 1747 | {{{#!if !ps | |
| 1748 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 1749 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1750 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1751 | }}}}}} | |
| 1752 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 1753 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 1754 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1755 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1756 | }}}}}}{{{#!if ty=+ty | |
| 1757 | }}}}}} | |
| 1758 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 1759 | }}}{{{#!if ty>ab | |
| 1760 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 1761 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 1762 | }}} | |
| 1763 | {{{#!if (au==0)&&(ab==0) | |
| 1764 | {{{#!if br=true | |
| 1765 | }}}}}}}}} | |
| 1766 | {{{#!if !br | |
| 1767 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 1768 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 1769 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 1770 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 1771 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 1772 | }}}}}}{{{#!if ab.length<18 | |
| 1773 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 1774 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 1775 | }}}}}}}}} | |
| 1776 | ##i=5 | |
| 1777 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 1778 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 1779 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1780 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1781 | }}}}}} | |
| 1782 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 1783 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 1784 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1785 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1786 | }}}}}}{{{#!if ty=+ty | |
| 1787 | }}}}}} | |
| 1788 | {{{#!if ty>ab | |
| 1789 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 1790 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 1791 | }}}}}} | |
| 1792 | {{{#!if !br | |
| 1793 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 1794 | {{{#if ps=true, tm+="0" | |
| 1795 | }}}}}} | |
| 1796 | {{{#!if !ps | |
| 1797 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 1798 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1799 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1800 | }}}}}} | |
| 1801 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 1802 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 1803 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1804 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1805 | }}}}}}{{{#!if ty=+ty | |
| 1806 | }}}}}} | |
| 1807 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 1808 | }}}{{{#!if ty>ab | |
| 1809 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 1810 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 1811 | }}} | |
| 1812 | {{{#!if (au==0)&&(ab==0) | |
| 1813 | {{{#!if br=true | |
| 1814 | }}}}}}}}} | |
| 1815 | {{{#!if !br | |
| 1816 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 1817 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 1818 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 1819 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 1820 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 1821 | }}}}}}{{{#!if ab.length<18 | |
| 1822 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 1823 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 1824 | }}}}}}}}} | |
| 1825 | ##i=6 | |
| 1826 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 1827 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 1828 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1829 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1830 | }}}}}} | |
| 1831 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 1832 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 1833 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1834 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1835 | }}}}}}{{{#!if ty=+ty | |
| 1836 | }}}}}} | |
| 1837 | {{{#!if ty>ab | |
| 1838 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 1839 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 1840 | }}}}}} | |
| 1841 | {{{#!if !br | |
| 1842 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 1843 | {{{#if ps=true, tm+="0" | |
| 1844 | }}}}}} | |
| 1845 | {{{#!if !ps | |
| 1846 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 1847 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1848 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1849 | }}}}}} | |
| 1850 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 1851 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 1852 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1853 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1854 | }}}}}}{{{#!if ty=+ty | |
| 1855 | }}}}}} | |
| 1856 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 1857 | }}}{{{#!if ty>ab | |
| 1858 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 1859 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 1860 | }}} | |
| 1861 | {{{#!if (au==0)&&(ab==0) | |
| 1862 | {{{#!if br=true | |
| 1863 | }}}}}}}}} | |
| 1864 | {{{#!if !br | |
| 1865 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 1866 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 1867 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 1868 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 1869 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 1870 | }}}}}}{{{#!if ab.length<18 | |
| 1871 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 1872 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 1873 | }}}}}}}}} | |
| 1874 | ##i=7 | |
| 1875 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 1876 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 1877 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1878 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1879 | }}}}}} | |
| 1880 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 1881 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 1882 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1883 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1884 | }}}}}}{{{#!if ty=+ty | |
| 1885 | }}}}}} | |
| 1886 | {{{#!if ty>ab | |
| 1887 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 1888 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 1889 | }}}}}} | |
| 1890 | {{{#!if !br | |
| 1891 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 1892 | {{{#if ps=true, tm+="0" | |
| 1893 | }}}}}} | |
| 1894 | {{{#!if !ps | |
| 1895 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 1896 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1897 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1898 | }}}}}} | |
| 1899 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 1900 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 1901 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1902 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1903 | }}}}}}{{{#!if ty=+ty | |
| 1904 | }}}}}} | |
| 1905 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 1906 | }}}{{{#!if ty>ab | |
| 1907 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 1908 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 1909 | }}} | |
| 1910 | {{{#!if (au==0)&&(ab==0) | |
| 1911 | {{{#!if br=true | |
| 1912 | }}}}}}}}} | |
| 1913 | {{{#!if !br | |
| 1914 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 1915 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 1916 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 1917 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 1918 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 1919 | }}}}}}{{{#!if ab.length<18 | |
| 1920 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 1921 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 1922 | }}}}}}}}} | |
| 1923 | ##i=8 | |
| 1924 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 1925 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 1926 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1927 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1928 | }}}}}} | |
| 1929 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 1930 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 1931 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1932 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1933 | }}}}}}{{{#!if ty=+ty | |
| 1934 | }}}}}} | |
| 1935 | {{{#!if ty>ab | |
| 1936 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 1937 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 1938 | }}}}}} | |
| 1939 | {{{#!if !br | |
| 1940 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 1941 | {{{#if ps=true, tm+="0" | |
| 1942 | }}}}}} | |
| 1943 | {{{#!if !ps | |
| 1944 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 1945 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1946 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1947 | }}}}}} | |
| 1948 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 1949 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 1950 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1951 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1952 | }}}}}}{{{#!if ty=+ty | |
| 1953 | }}}}}} | |
| 1954 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 1955 | }}}{{{#!if ty>ab | |
| 1956 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 1957 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 1958 | }}} | |
| 1959 | {{{#!if (au==0)&&(ab==0) | |
| 1960 | {{{#!if br=true | |
| 1961 | }}}}}}}}} | |
| 1962 | {{{#!if !br | |
| 1963 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 1964 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 1965 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 1966 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 1967 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 1968 | }}}}}}{{{#!if ab.length<18 | |
| 1969 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 1970 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 1971 | }}}}}}}}} | |
| 1972 | ##i=9 | |
| 1973 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 1974 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 1975 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1976 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1977 | }}}}}} | |
| 1978 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 1979 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 1980 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1981 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1982 | }}}}}}{{{#!if ty=+ty | |
| 1983 | }}}}}} | |
| 1984 | {{{#!if ty>ab | |
| 1985 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 1986 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 1987 | }}}}}} | |
| 1988 | {{{#!if !br | |
| 1989 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 1990 | {{{#if ps=true, tm+="0" | |
| 1991 | }}}}}} | |
| 1992 | {{{#!if !ps | |
| 1993 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 1994 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 1995 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 1996 | }}}}}} | |
| 1997 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 1998 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 1999 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 2000 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 2001 | }}}}}}{{{#!if ty=+ty | |
| 2002 | }}}}}} | |
| 2003 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 2004 | }}}{{{#!if ty>ab | |
| 2005 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 2006 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 2007 | }}} | |
| 2008 | {{{#!if (au==0)&&(ab==0) | |
| 2009 | {{{#!if br=true | |
| 2010 | }}}}}}}}} | |
| 2011 | {{{#!if !br | |
| 2012 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 2013 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 2014 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 2015 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 2016 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 2017 | }}}}}}{{{#!if ab.length<18 | |
| 2018 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 2019 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 2020 | }}}}}}}}} | |
| 2021 | ##i=10 | |
| 2022 | {{{#!if au=+au, ab=+ab, tz=0, !br&&(tn!="") | |
| 2023 | {{{#!if tn+=pd, tn=+tn, tz=tn/bu, tx=bu*tz, ty=bb*tz | |
| 2024 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 2025 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 2026 | }}}}}} | |
| 2027 | {{{#!if ty=+ty, (tx>tn)||((tx==tn)&&(ty>0)) | |
| 2028 | {{{#!if tz-=1, tx=bu*tz, ty=bb*tz | |
| 2029 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 2030 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 2031 | }}}}}}{{{#!if ty=+ty | |
| 2032 | }}}}}} | |
| 2033 | {{{#!if ty>ab | |
| 2034 | {{{#!if tn-=1, ab+=+("1"+pd) | |
| 2035 | }}}}}}{{{#!if au+=(tn-tx), ab-=ty, tn="" | |
| 2036 | }}}}}} | |
| 2037 | {{{#!if !br | |
| 2038 | {{{#if ps=false, (au<bu)||((au==bu)&&(ab<bb)) | |
| 2039 | {{{#if ps=true, tm+="0" | |
| 2040 | }}}}}} | |
| 2041 | {{{#!if !ps | |
| 2042 | {{{#!if tw=au/bu, tx=bu*tw, ty=bb*tw | |
| 2043 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 2044 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 2045 | }}}}}} | |
| 2046 | {{{#!if ty=+ty, (tx>au)||((tx==au)&&(ty>ab)) | |
| 2047 | {{{#!if tw-=1, tx=bu*tw, ty=bb*tw | |
| 2048 | }}}{{{#!if ty=ty.toString(), ty.length==19 | |
| 2049 | {{{#!if tx+=+(ty.substr(0,1)), ty=ty.substr(1,18) | |
| 2050 | }}}}}}{{{#!if ty=+ty | |
| 2051 | }}}}}} | |
| 2052 | {{{#!if tw+=tz, tw=tw.toString(), tm+=tw | |
| 2053 | }}}{{{#!if ty>ab | |
| 2054 | {{{#!if au-=1, ab+=+("1"+pd) | |
| 2055 | }}}}}}{{{#!if au-=tx, ab-=ty | |
| 2056 | }}} | |
| 2057 | {{{#!if (au==0)&&(ab==0) | |
| 2058 | {{{#!if br=true | |
| 2059 | }}}}}}}}} | |
| 2060 | {{{#!if !br | |
| 2061 | {{{#!if au=au.toString(), ab=ab.toString() | |
| 2062 | }}}{{{#!if tn="", ps=(au.length==18), ps | |
| 2063 | {{{#!if tn=au.substr(0,1), au=substr(1,17) | |
| 2064 | }}}}}}{{{#!if !ps&&(au.length<17) | |
| 2065 | {{{#!if au=pd+au, au=au.substr(au.length-17,17) | |
| 2066 | }}}}}}{{{#!if ab.length<18 | |
| 2067 | {{{#!if ab=pd+ab, ab=ab.substr(ab.length-18,18) | |
| 2068 | }}}}}}{{{#!if au+=ab.substr(0,1), ab=ab.substr(1,17)+"0" | |
| 2069 | }}}}}}}}} | |
| 1678 | 2070 | |
| 1679 | ||
| 1680 | 2071 | ##rs 매기기 |
| 1681 | 2072 | |
| 1682 | 2073 | ##ru 매기기 |
| ... | ... |