###### tags: `程式組工筆`
# 20220829 ~ 20220904
# 20220901
## 彭柏鈞
Today is the first day of the offical programming team class. Just when I was expecting about the programming and the machines of the school fair, we were suddenly made to test the robot code we wrote at the summer courses, as well as learning some advanced(?) programming skills. By the way, because Neil's computer was broken and the car went brrr not under Neil's code, his was almost driven nuts.
## 魏旭霆
At,first we practicing command base for almost an hour.And then we started a useful skill which called "vector".Vector is a kind of array,but is contains more benefits likes convenient ,faster and clear.
This is my program of some basic knoeages about vector like how to define a vector array ,how to input output and even how to delete dates from a vector array.
At last ,we learn to make our program more clear so that readers or ourself can easily understand what we are doing.
```
#include<iostream>
#include<vector>
using namespace std;
vector<int> v;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin>>n;
//input date
//usage 1
int x;
for(int i=0;i<n;i++){
cin>>x;
v.push_back(x);//is equal to v.emplace_back(x)
}
for(int i;i<v.size();i++)
{
cout<<v[i]<<" ";
}
//Deleteing Date Ways
//1
cout<<"Start Deleteting Date\n";
for(int i = 0 ; i<n;i++) v.pop_back();
cout<<"Start Output Date";
// //2
v.clear;
// //3
while( !v.empty()) v.pop_back();
}
```
## 倪睿宏
Cuz my laptop BURNED last weekend and it's still repairing, I actually did nearly nothing today. Despite this, I still learned something, which is called Vector. It seems used for cpp coding competitions and just like an arraylist in Java. However, I didn't fully understand this stuff so I can't explain so much.
## Aslan
Today, because of the ample training time, after the freshmen practice the robot test, I will teach them some things about CP (Vector, Stack...)
## 粘家榆
Today, we tested our code for about an hour. At that time, I did't know how to code that thing. Because of that, I discussed my opinion with Nash. Last half class, Aslan taught us about vector. But I still did't know how to use that skill when coding.
## 江宥伶
We tested code for about one hour but I had no idea, so I looked for some information about java and FRC. Luckily, I succeed after a week. Aslan taught us about vector. I hadn't learnt it before, but I could understand some of them.
## 施暄庭
At first, I practiced writing command based robot. Then, Aslan taught us about vector in c++, and left out a difficult problem for us to solve TT which I had no idea how to crack it...
## 黃湲宸
Today we had practice typing command base for a long time, it is hard to complete, so I had discuss with sb else and also surch it in the internet. And Aslan taught us a skill which called vector, it is not really hard to understand, but I don't know when I can use it :(
## 王敬銜
Successfully tested the command base code to make the robot move in a z-shape.
Learned data structure <vector>. (and selfstudied <stack>)
Solved the question of checking if the inputs are legal.
- legal inputs
- ([()()]())[] or [()()[[()]()]]()
- illegal
- ([)] or ((([[]()]
solution:
if ( or [ : push
if ) or ] : check if top equals ) or ]
final check s.length == 0