| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 | 
							- <!DOCTYPE html>
 
- <html>
 
- <head>
 
-   <link rel="stylesheet" type="text/css" href="js/semantic/semantic.min.css">
 
-   <style>
 
-     .ivprog-io-output {
 
-       border: 1px solid gainsboro;
 
-       width: 80%;
 
-       height: 360px;
 
-       overflow-y: scroll;
 
-       background-color: black;
 
-       color: white;
 
-     }
 
-     .ivprog-io-input {
 
-       width: 80%;
 
-       margin-top: 10px;
 
-       border: 1.5px solid green;
 
-       height: 3rem;
 
-       color: black;
 
-       font-size: 12pt;
 
-     }
 
-   </style>
 
-   <title></title>
 
- </head>
 
- <body>
 
-     <div style="padding-top: 50px;content: ''"></div>
 
-   <div class="ui container grid">
 
-     
 
-     <div class="four wide column">
 
-       <div class="row">
 
-         <textarea class="ui form control" name="input" id="input" cols="100" rows="30">
 
-           programa {
 
-             funcao inicio() {
 
-               cadeia a = "mustache"
 
-               cadeia b = "mostacheh"
 
-               escreva(editDist(a,b,comprimento(a), comprimento(b)))
 
-             }
 
-         
 
-             funcao inteiro editDist(cadeia str1 , cadeia str2 , inteiro m ,inteiro n) {
 
-               inteiro l = m + 1
 
-               inteiro c = n + 1
 
-               inteiro i, j
 
-               inteiro mat[l][c]
 
-               para(i = 0; i <= m; i = i + 1 ) {
 
-                 para(j = 0; j <= n; j = j + 1) {
 
-                   se (i==0) {
 
-                     mat[i][j] = j
 
-                   } senao se (j == 0) {
 
-                     mat[i][j] = i
 
-                   } senao se (char_at(str1, i-1) == char_at(str2, j-1)) {
 
-                     mat[i][j] = mat[i-1][j-1]
 
-                   } senao {
 
-                     mat[i][j] = 1 + Matematica.minimo({mat[i][j-1], mat[i-1][j], mat[i-1][j-1]})
 
-                   }
 
-                 }
 
-               }
 
-               retorne mat[m][n]
 
-             }
 
-         
 
-           }
 
-         </textarea>
 
-       </div>
 
-       <div class="row">
 
-           <button class="ui button" id="btn">Run</button>
 
-       </div>
 
-     </div>
 
-     <div class="six wide column">
 
-       <div id="dom-out" class="ivprog-io-output">
 
-       </div>
 
-       <input id="dom-in" type="text" class="ivprog-io-input">
 
-     </div>
 
-     <div class="six wide column">
 
-         <div style="overflow-y: scroll; height: 70%;">
 
-             <pre id="json-renderer" class="ui right floated"></pre>
 
-         </div>
 
-     </div>
 
-   </div>
 
-   
 
-   
 
- </body>
 
- <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
 
- <script type="text/javascript" src="js/jquery.json-editor.min.js"></script>
 
- <script type="text/javascript" src="build/ivprog.bundle.js"></script>
 
- </html>
 
 
  |