diff --git a/ASD_Task_1.depend b/ASD_Task_1.depend index f6e48bd..0f1012a 100644 --- a/ASD_Task_1.depend +++ b/ASD_Task_1.depend @@ -7,3 +7,9 @@ 1516168119 c:\users\andityaarifianto\documents\github\asd_task_1\asd_task_1.h +1579948774 source:d:\std\github\asd_task_1\main.cpp + + +1579929580 source:d:\informatika\semester 2\struktur data\asd_task_1\main.cpp + + diff --git a/ASD_Task_1.layout b/ASD_Task_1.layout index b374acb..173189c 100644 --- a/ASD_Task_1.layout +++ b/ASD_Task_1.layout @@ -2,9 +2,13 @@ - + - + + + + + diff --git a/bin/Debug/ASD_Task_1.exe b/bin/Debug/ASD_Task_1.exe index bb9d49d..e5b1067 100644 Binary files a/bin/Debug/ASD_Task_1.exe and b/bin/Debug/ASD_Task_1.exe differ diff --git a/main.cpp b/main.cpp index f439d60..7c3278d 100644 --- a/main.cpp +++ b/main.cpp @@ -4,9 +4,9 @@ using namespace std; /** WRITE DOWN YOUR INFORMATION HERE */ -string name = ""; // put your name here -string ID = ""; // put your student id here -int group_id = 0; // your Group Number here (1-8) +string name = "I Wayan Adi Wahyudi,Balqis Sayyidahtul Atikah,Mayang Sari,Akmal Muhamad Faza."; // put your name here +string ID = "1301194084,1301193480,1301194227,1301190436"; // put your student id here +int group_id = 6; // your Group Number here (1-8) /** FUNCTIONS LIST, DO NOT MODIFY THESE */ @@ -70,11 +70,23 @@ void insert_last_unique(int arr[], int &n, int x) { */ // YOUR CODES HERE + + //-------------- + bool sama=false; + int i; + for (i=0; i=0 ;i--) { + cout<