---
# System prepended metadata

title: Week4 10/22

---

# Week4 10/22

## Python Script點擊
    from selenium import webdriver

    url = "http://140.134.25.138:14500/index.php"

    driver = webdriver.Chrome()
    driver.get(url)
    for i in range(0,2020):
        driver.find_element_by_css_selector("[class='btn btn-lg btn-primary btn-block']").click()



## 組語翻回 C 語言
1. ```c=
    #include <stdio.h>

    int main () {
        //answer
        int a = 0xa;
    
        return 0;
    }
    ```

2. ```c=
    #include <stdio.h>

    int main () {
        //answer
        char a = 0x61;
    
        return 0;
    }
    ```

3. ```c=
    #include <stdio.h>

    int main () {
        //answer
        int a = 0xa
        int *b = &a;
    
        return 0;
    }
    ```

4. ```c=
    #include <stdio.h>

    int main () {
        //answer
        int a = 0xa;
        
        if(a >= 0x15){
        
            return 0;
        
        }
        
        return 1;
    }
    ```

5. ```c=
    #include <stdio.h>

    int main () {
        
        //answer
        int a = 0x00;
        char c;
        
        switch(a){
        
            default:
                c = 0x41;
                break;
            case 0x2;
                c = 0x42;
                break;
            case 0x3:
                c = 0x43;
                break;
            case 0x1:
                c = 0x44;
        
        }
        
        return 0;
        
    }
    ```

6. ```c=
    #include <stdio.h>

    int main () {
        
        int a = 0x00, b = 0x00;
        
        for(;b < 10;){
        
            a += b;
            b++;
        
        }
        
        return 0;
        
    }
    ```


7. ```c=
    #include <stdio.h>

    int main () {
        
        //answer
        int a = 0x05, b = 0x05, c = 0x00;
        
        c = a + b;
        
        return 0;
        
    }
    ```
    
8. ```c=
    #include <stdio.h>

    int main () {
        
        //answer
        int a = 0x05, b = 0x05, c = 0x00;
        
        c = a - b;
        
        return 0;
        
    }
    ```

9. ```c=
    #include <stdio.h>

    int main () {
        
        //answer
        int a = 0x05, b = 0x05, c = 0x00;
        
        c = a * b;
        
        return 0;
        
    }
    ```

10. ```c=
    #include <stdio.h>

    int main () {
        
        //answer
        int a = 0x04, b = 0x00;
        
        b = a & 0x01;
        
        return 0;
        
    }
    ```
    
11. ```c=
    #include <stdio.h>

    int main () {
        
        //answer
        int a = 0x04, b = 0x00;
        
        b = ~ a;
        
        return 0;
        
    }
    ```

12. ```c=
    #include <stdio.h>

    int main () {
        
        //answer
        int a = 0x0a;
        
        a = a >> 1;
        
        return 0;
        
    }
    ```