---
# System prepended metadata

title: 第一關程式繳交處
tags: [關卡_st]

---

---
title: 第一關程式繳交處
tags: 關卡_st
---
> [第一關題目](https://hackmd.io/@futurenest/code_challenge_1)

> [程式線上編譯環境](https://replit.com/)
:::warning
繳交規範（可以複製這裡的喔）

`### 自己名字`
`#### 題目一` 
```python
程式碼
```
`#### 題目二` 
```c++
程式碼
```
:::

---

### 郭尚蓁
#### 題目一
```python
print('hello')
```
### 王政翔

#### 題目一：
```cpp=
#include<iostream>
using namespace std;

int main(){
	char name[100];
	cin >> name;
	cout << "hello, " << name << endl;
    
    return 0;
}
```

#### 題目二：
```cpp=
#include<iostream>
using namespace std;

int main(){
	int number, digit, addin;
	cin >> number;
	addin = 0;
	while(number != 0){
		digit = number % 10;
		addin = (addin * 10) + digit;
		number = number / 10;
	}
	cout << addin << endl;
    
    return 0;
}
```
#### 題目三：
```cpp=
#include<iostream>
using namespace std;

int main(){
	double r, area, circumference;
	cin >> r;
	circumference = r * 2 * 3.14;
	area = r * r * 3.14;
	cout << "[" << circumference << ", " << area << "]" << endl;
    
    return 0;
}
```

### 楊苡若
題目一：
```python=
word = input('輸入總共一行，內含一組文字：')
print("hello, ", word)
```
題目二：
```python=
s = input("輸入一個三位數：")
s = (s[::-1])
s = s.lstrip('0')
print(s)
```
題目三：
```python=
PI = 3.14
Integer = int(input('輸入整數r:'))
print('[', Integer * 2 * PI, ', ', Integer**2 * PI, ']')
```




### 林永晉
題目一:

```python=
a = input("please enter any words:")
print("hello, ", a)
```
題目二: 
```python=
def reverse(number):
   if number < 0:
      b = -number
      c = -reverse(b)
      return c
   elif 0 <= number < 10:
      return number
   else:
      return int(str(number % 10) + str(reverse(number // 10)))
      
def main():
    number = int(input("Enter an integer number:"))
    print(reverse(number))
main()
```
題目三：
```python=
import math
r = eval(input("輸入整數r："))
perimeter = 2 * r * math.pi
area = r ** 2 * math.pi
print("[",round(perimeter,2),", ",round(area,2),"]")
```
### 余靜玟
#### 題目一：
```python
s = input("輸入文字：")
print("hello,", x)
```
#### 題目二：
```python
def reverseInteger(self, number):
        unit = number%10         #取出個位數
        ten = (number/10)%10   #取出十位數
        hun = number/100         #取出百位數
        return unit * 100 + ten * 10 + hun

if __name__ == "__main__":
    so = Solution()
    print so.reverseInteger(123)
```
#### 題目三：
```python
r = float(input("請輸入整數："))
a = r**2 * 3.14
b = r * 2 * 3.14
print([b, a])
```



### 張宸瑋
#### 題目一:
```python
x = input('請輸入文字:')
print('hello,', x)
```
#### 題目二:
```python
number = input('請輸入一個三位數：')
list1 = list(number) #
list1.reverse() 
a = int(list1[0])
b = int(list1[1])
c = int(list1[2]) 
re_number = a*100 + b*10 + c
print('%s的反轉數是:%s'%(number, re_number))
```
#### 題目三:

```python
r = float(input('輸入整數:'))
a = r**2 * 3.14
b = r * 2 * 3.14
print([b, a])

```


### 郭亮霆
#### 題目１
```python
print("輸入總共一行，內含一組文字")
a = str(input())
print("hello", a)
```
#### 題目2
```python
x = int(input())
y = int(input())
z = int(input())
if y==0 and z==0:
    print(x)
else:
    print(z,y,x)   
```

#### 題目3
```python
print("請輸入圓的半徑：")
r=float(input())
x=(2*r)*3.14
y=(r*r)*3.14
print([x,y])
```

### 陳弈劭

#### 題目一:
```c++
#include <iostream>
using namespace std;

int main() {
  char word[0];
  cin >> word;
  cout << "hello, " << word << endl;

  return 0;
}

```
### 張云綺
#### 題目一
```python
y=input("world")
print("hello",y)
```
#### 題目二
```python
num = any number
a = "num"
b = list(a)
b.reverse()
b = ''.join(b)
print(b)
```
#### 題目三
```python
#radius=半徑(可以填入任何數字)
print(radius*2*3.14,radius*radius*3.14)
```
### 楊芷瑜
#### 題目一
```python 
word=input("輸入文字")
print("hello,",word)
```
#### 題目二
```python 
num1=input("輸入第一個數字")
num2=input("輸入第二個數字")
num3=input("輸入第三個數字")
print(num3,num2,num1)
```
#### 題目三
```python
a=input("輸入數字")
b=2
c=3.14
print([int(a)*b*c,int(a)*int(a)*c])
```
### 張若聞
#### 題目一
```c++
#include <iostream>
using namespace std;

int main() {
    string word;
    cin >> word;
    cout << "Hello, " << word << endl;
  
  return 0;
}
```
#### 題目二
```c++
#include <iostream>
using namespace std;

int main(){
    int n;
    cin >> n;
    
    while (n > 0)
    {
        cout << n % 10;
        n /= 10;
    }
    cout << endl;
   
    return 0;
}
```
#### 題目三
```c++
#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    
    float r;
    cin >> r;
    
    cout << "[" << fixed << setprecision(2) << 2 * r * 3.14 << ", " << r * r * 3.14 << "]" << endl;
  
  return 0;
}
```
### 黃冠霖
#### 題目一
```python
a=input()
print("hello, "+a)
```
#### 題目二
```python
num=input()
l=list(str(num))
a,b,c=num
print(c,b,a)
```
#### 題目三
```python
r=int(input())
pi=3.14
p=(r*2)*pi  #周長
a=(r**2)*pi  #面積
print(p,a)
```
### 鍾宇哲
#### 題目一
```python=
a = input ("")
print ('hello' , a)
```
#### 題目二
```python=
x = input ( )
y = input ( )
z = input ( )
a = [z, y ,x]
print(a)
```
#### 題目三
```python=
r = input( )
x = float(r)*2*3.14
y = float(r)*float(r)*3.14
print("周長", x ,"面積", y)
```
### 鍾宇恩
#### 題目一
```python=
a = input('Please type any words')
print('Hello, ', a)
```
#### 題目二
```python=
a1 = input('Please type a number')
a2 = input('Please type a number')
a3 = input('Please type a number')

a1 = int(a1)
a2 = int(a2)
a3 = int(a3)
if a2 == 0 and a3 == 0:
    print(a1)
else:
    print(a3,a2,a1)
```
#### 題目三
```python=
r = float(input('Please type a number'))
a = r*2*3.14
b = r*r*3.14
print(a,b)
```
